Memcache获取密钥到期时间 [英] Memcache get key expiry times
本文介绍了Memcache获取密钥到期时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用memcached和php memcached库,当执行得到?
Using memcached and the php memcached library, is there a way to get the current keys expiry time when doing a get?
推荐答案
否,无法从客户端检索此类数据.如果确实需要它,请将其与数据一起存储在序列化数组中或其他内容中.另外,请查看这篇文章,以防万一您试图做类似的事情.
No, that kind of data is not retrievable from the client end. If you really need it, store it together with the data in a serialized array or something. Also, check out this post just in case you were trying to do something similar.
这篇关于Memcache获取密钥到期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文