How to delete lots of related keys at once
iwade at optusnet.com.au
Fri Aug 3 02:06:32 UTC 2007
> So my question is, if we want to make sure our site is
> never stale, then we need to invalidate all 100 of
> those keys if someone inserts a new article. Now I'm
> thinking I need to do a search in my keys to find all
> article related keys and invalidate them.
An idea might be to determine the validity based on something other
than the existance of the cached data.
Keep track of the highest post id, or the most recent post timestamp,
and if the cached value returned is older than that, disregard the
info and refresh it.
More information about the memcached