See expired keys?
roze at roze.lv
Mon Feb 19 09:51:09 UTC 2007
The key/object lifetime is exactly that as you specify (
http://php.net/manual/en/function.Memcache-set.php ( string $key, mixed $var
[, int $flag [, int $expire]] )) in the $expire param (seconds).
If you do just plain set('key','value') the key lives forever till some
newer object pushes it out because of not enough space - that is if you
suply memcached with enough ram (and your cache isnt that big or doesnt
update very often) there shouldn't be any expired keys at all ;)
----- Original Message -----
From: Sam G.
To: memcached at lists.danga.com
Sent: Monday, February 19, 2007 9:54 AM
Subject: See expired keys?
I'm using memcached across several servers with the PECL PHP Memcache
library. Our application uses memcached for many different types of
information, and I was wondering a few things: what keys are expiring, what
is the average lifetime of a key, and ideally, what keys are expiring when.
Is there any way to get this information without resorting to the -vv
startup option? Thanks very much.
More information about the memcached