OOh! Many thanks, though, after reading I think I have a simpler idea: Instead of incrementing that namespaces, I though another aproach:
Just, prior to get anything from cache, get the 'namespace' data and ignore its content, just see if exists or not. if it exists, then you can proceed to gather the cache data you need if not, then recreate the cache with the data you have (from DB, etc...) To invalidate, remove that key As I see it, only race condition is posible at the time to invalidate the namespace and the effect of that race condition is not that important. Thanks for the tip :) On 30 mar, 16:44, Brian Moon <[email protected]> wrote: > This technique is your best bet. > > http://code.google.com/p/memcached/wiki/NewProgrammingTricks#Namespacing > > Brian.http://brian.moonspot.net > > On 3/30/12 5:19 AM, StormByte wrote: > > > > > > > > > Is it possible (or planned) to delete (or mark as invalid) keys with > > wildcards? > > > Suppose we have plenty of keys stored in memcache, and want to remove > > certain group from cache, example, any key like "AccountData:*" being > > * anything. > > > Is it possible or scheduled to implement?
