See expired keys?
ceptorial at comcast.net
Wed Feb 21 02:03:40 UTC 2007
Mostly I'm wondering for the keys that I don't set expiration for:
are they being pushed out of cache? Or do I actually have plenty of
room, and I can store a lot more. I'd like to know either at what
rate am I pushing out non-expiring keys, or what is the average
lifetime of a non-expiring key before it gets pushed out of cache.
On Feb 19, 2007, at 1:51 AM, Reinis Rozitis wrote:
> 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?
> Hi everyone,
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the memcached