W dniu piątek, 24 maja 2013 20:41:16 UTC+2 użytkownik Paula Beati napisał:
>
> Hello
> I am trying to store a document in a couchbase bucket with expiration time 
> 90 seconds, using this:
>
> public static bool Store(CouchbaseClient couchbaseClient, string key, 
> object iserializableValue, TimeSpan validFor)
> {
> [...]
>
> Enyim.Caching.Memcached.Results.IStoreOperationResult operationResult = 
> couchbaseClient.ExecuteStore(StoreMode.Add, key, iserializableValue, 
> validFor);
> [...]
>
> }
>
> Documents are stored and read successfully but they do not expire.
>
> Hello
 I bring this topic back to life... I have the same problem using PHP SDK. 
I set a document using the following set() function:
$cb->set('my_doc_name', json_encode($doc_value), 900); 

Then when I check the document using linux console:
$curl -v "http://localhost:8091/couchBase/default/my_doc_name"; 
I can see in the meta section that expiration time is sometimes set 
properly and sometimes 0... I cannot see any regularity. I ran this script 
from cron. 

These are just a few documents that I can check, but I think, I cannot 
trust the expiration in CB...

Kuba

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to