Can you auto delete keys after 1 day?

It is possible to put auto delete of keys older than 1 day ?
If there is programatically tell me/ other console config…

What you can use for that is the Time To Live (TTL) that will automatically expire after a specific time.
Take a look to :

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?


It works,
I was using :


And I took a look to all add overloaded methods and didn’t find anything with expire :slight_smile: