Hi, and I guess you meant when an object is expired.

Well, actually the only thing you can get from memcached regarding expired
objects (AFAIK) is looking at the *reclaimed* variable of the memcached
stats command. This variable was introduced in version 1.4.10 (IMO) and
means " Number of times an entry was stored using memory from an expired
entry" .

This is very limited and also doesn't tell anything about the number of
objects that were expired and but were not reclaimed.

There are bunch of other related stats you can look at using "stats slabs"
(see more details
here<https://github.com/memcached/memcached/blob/master/doc/protocol.txt>)
but non of them really help you to understand the actual number of expired
objects.

Best,

Yiftach




On Fri, Mar 2, 2012 at 9:15 AM, 兽人不瘦 <[email protected]> wrote:

> how could i know when memcache expired,and how many seconds it last
> [英语蹩脚,附上中文]
> 我怎么才能知道memcache什么时候到期,memcache还有多少秒过期呢?




-- 
Yiftach Shoolman
+972-54-7634621

Reply via email to