declare TTL on PHP SDK

Hi,
I've tried to find a way to declare TTL for new key, I see this option exists on Ruby's SDK but nor on PHP.
Is there a way to declare it on PHP?
Tnx,
E.

1 Answer

« Back to question.

If you want to treat data like an old fashion memcached object and want to give it a TTL or expiration try this
$cb->set(12346 , json_encode($php_obj) , 60); // 60 seconds
www.couchbase.com/docs/couchbase-sdk-php-1.1/api-reference-store.html#ta...