Hi,
It is possible to put auto delete of keys older than 1 day ?
If there is programatically tell me/ other console config…
Hello,
What you can use for that is the Time To Live (TTL) that will automatically expire after a specific time.
Take a look to :
http://www.couchbase.com/docs/couchbase-devguide-2.0/about-ttl-values.html
I do not know which SDK you are using, so I will use the Java SDK as an example.
couchbase.set(“mykey”, (24 x 60 x 60) , myValue);
24 x 60 x 60 : is a day in seconds.
Could you confirm that it will work for you?
regards
Tug
It works,
Thanks.
I was using :
couchBaseClient.add(key,value);
And I took a look to all add overloaded methods and didn’t find anything with expire