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?
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
We have migrated this discussion to the Q&A section in our new User Communities Portal here: http://www.couchbase.com/communities/q-and-a/declare-ttl-php-sdk. Please head over there to continue the discussion; forums will become read-only on 06/27.
Your Couchbase Forum Team
© 2013 COUCHBASE All rights reserved.