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
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.