Issue
In runtime, I want to retrieve the expire time info about some items in memcached. I didn't find any related interface on memcached. Can I do this? something like: mc.get_expire_time('key')
Thank you
Solution
According to memcache protocol (both text and binary) niether get
nor gets
return expiration time. And there is no other method to retrieve it. But sure you can pack expiration time into value along with what you store now when you set
/add
it to make it retrievable.
Answered By - Denis Otkidach Answer Checked By - Robin (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.