Is there any easy way to implement a read-through and write-behind cache?
I did not find any information on the Internet or in the Couchbase documentation about read-through and write-behind caches, but they were mentioned in the User Panel "Using NoSQL to Replace a Caching Tier" (http://www.youtube.com/watch?v=GJWyX-uizmU). Does anyone know how to implement or setup read-through and write-behind in the cache?
We do not have specific logic here. This is really something that is based on your application/architecture.
You just need to find a way to calculate keys, based on the data your read from the database, and put that in Couchbase, same when you write/delete. And also chose if you want to use an expiration.
May be if you give us more information about your application we can provide more concrete example/logic.