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/
