I have a tool to do this on Linux. It pauses the server though, so it is not quite ready for a normal production environment.
http://github.com/fauna/peep/tree/master Evan On Wed, Sep 17, 2008 at 9:47 AM, Dustin <[EMAIL PROTECTED]> wrote: > > > I make pretty good use out of expire=0 in one of my apps. Of > course, the key is computed... > > In general, though, I've also been a bit scared to put indefinite > limits on things that can be cached indefinitely. There's correctness > and there's bugs. :/ > > On Sep 17, 8:31 am, Brian Moon <[EMAIL PROTECTED]> wrote: >> dantro wrote: >> > hi memcache friends >> >> > does anyone know how to find keys which are set at expire=0. >> > how can i find keys which were not used for a long time and are set >> > at expire=0 ? i just want to know this, as i want to check if i have >> > an error in setting and deleting keys. just imagine you write a >> > key-value pair to memcache and set it to expire=0. later on something >> > in the value changes and you forgot to set a right method to delete >> > this >> > key. what can you do to avoid this situation ? >> >> In the wrapper functions we use for memcached, we have a max time of >> 86400 for all keys for this very reason. That way no matter what, cache >> will expire after a day. We don't allow 0. For some things the max >> time is 300. >> >> -- >> >> Brian Moon >> Senior Web Engineer >> ------------------------------ >> When you care enough to spend the very least.http://dealnews.com/ > -- Evan Weaver --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "memcached" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/memcached?hl=en -~----------~----~----~----~------~----~------~--~---
