[PATCH] Sending remaining TTL in "read"'s response

Dustin Sallings dustin at spy.net
Fri Dec 7 03:15:15 UTC 2007


On Dec 6, 2007, at 19:03, dormando wrote:

> - We discussed the alternative method of wrapping the real  
> expiration time inside your serialized object, and using that  
> instead. We think that works out better for all invovled :)


	The thing I've mentioned a couple of times, but have put no effort  
into whatsoever is the ability to subscribe to an invalidation stream  
somehow.  It'd be pretty awesome to simply be notified when things  
happen that invalidate keys.

	There are obviously a few large holes that come about when one goes  
to implement such an idea (it shouldn't weigh down mutations, and  
there's the question of how to be notified when something just  
expires).  I suppose the expiration time could be skipped if the  
second-level cache *also* tracked the times.

	It'd be a hard thing to get right, but it's the right way to do a  
second-level cache.

-- 
Dustin Sallings





More information about the memcached mailing list