Remove the Item in the CouchBase cache based on Time Frame
Hi All,
I need to Remove the item in the cache based on Time Frame,Removed item and keyValue need to update in the data base .So i need to get The Item and KeyValue from the CouchBase Cache whenever it removed Automatically(Time Based Or notification based).
Plz Let me Know Better way to implement this Scenario in CouchBase cache.
Regards,
Bijesh PB
First off Couchbase does evict items to disk when memory becomes full. This means that you could potentially have 2GB of ram and 20GB on disk. If an item is requested that isn't on disk it is fetched into memory and then returned.
@bijesh
If sounds like you want a notification feed of all items that have been deleted or expired in the database. The only way to do this right now is with our tap interface. You can setup a backfill stream which will stream all key mutations and deletions. On the client side you could filter all of the deletes. Is this something that sounds like it would solve your problem?
@ckilborn
I asked a few questions in one of your other posts. Lets continue your discussion there.
I also need a way to remove items from couchbase based on time.
I understand that couchbase does not evict items, it waits until they expire before they are removed. However there are times when I need to reduce the # of items in my bucket and I would like to start with the oldest keys and values. There has got to be a way to do this.