When an item is expired it will return false to you .. not the expired
item.  It sounds to be like you want to use memcache as a datastore and save
to object to disk when its expired, but this is the wrong way to handle
memcache.  Its just a cache, nothing more.

On Sun, Aug 23, 2009 at 8:57 AM, ron <[email protected]> wrote:

>
> thanks.
>
> So can memcached at least return an expiring object for the last time
> to my application, with a flag set saying that it has expired in
> memecached and the next time you request the object it will return
> null?
> Doing this will give me a chance to do my other application clean up
> which needs the data in that expiring cache object.
>
> On Aug 23, 8:34 am, Brian Moon <[email protected]> wrote:
> > 1. No, memcached does not do that.
> >
> > 2. You don't want it to.
> http://code.google.com/p/memcached/wiki/FAQ#When_do_expired_cached_it...
> > Having to have a garbage collector that watched items for expiration
> > would increase the load that memcached put on a system a great deal.
> >
> > Brian.
> > --------http://brian.moonspot.net/
> >
> > On 8/23/09 12:03 AM, ron wrote:
> >
> >
> >
> > > Hi,
> >
> > > Can memached trigger some kind of event to notify client that a
> > > particular cached object is expired??
> >
> > > If it doesn't support, does anyone know what other technology out
> > > there there is also a distributed cache but also it can send out
> > > events when an object is about to expired??
> >
> > > thx.
> > > Ron
>

Reply via email to