Declare TTL on PHP SDK


#1

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.


#2

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#table-couchbase-sdk_php_set