Couchbase expiration policy
hi,
i'm using .net client 1.2 beta against 2.0 dev prev 4 version of couchbase.
what i don't understand is the expiration behavior - when i set expiration time when storing the item in db to be one minute and check number of items in the monitoring console, i see that items never gets removed...
_client.Store(StoreMode.Add, "testSpan", "testSpan", TimeSpan.FromMinutes(1));
what's going wrong there, or did i miss anything?
Lubos
thanks for explanation!
what is then the time span in which the job is triggered?
and what is then the accuracy of the expiration? i mean if i set it to be 12:00 - and then access it at 12:05, will i get nothing?
To my knowledge the background job runs every hour.
Here is the info on expiration from the docs:
Expiration times are expressed in seconds. If the value is less than 30 days (30*24*60*60), the expiration is the number of seconds until the value expires. A number higher than this indicates an absolute expiration based on the number of seconds since the epoch.
hi, thanks!
Hi guys,
What would happen if I passed a <= 0 expiry value?
Thanks,
Bart
The removal of expired documents happens either when you try to access the document or when a background job runs, so seeing docs appear there for some time is normal. This allows the server to be much more efficient.