declare TTL on PHP SDK

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?

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