Deleting keys using wildcards DELETE foo:*

Brad Fitzpatrick
Mon, 26 Jul 2004 10:53:36 -0700 (PDT)

No, not with good performance how it is now.  We like all memcached
algorithms/data structures to be O(1).

I suggest you make your "key:*" keys have a create time as well as the
value, then another key like "key:_invalidate_time" which has the time
that all key:* records with a create time from before is invalid.

On Fri, 23 Jul 2004, Richard Jones wrote:

> Hi,
> Would it be possible to add functionality to memcache to allow deletion
> of keys using wildcards, eg delete all keys starting with "foo" ?
> Guess this depends on the data structures memcache uses.
> Cheers,
> RJ