How to get all the keys from servers?

Jamie McCarthy jamie at
Mon Dec 4 20:14:56 UTC 2006

renatosilveira at (Renato Silveira) writes:

> I have to implement a routine that returns all the keys/values
> from memcached.

The short answer is, no, you probably don't.  To avoid a rehash of
this discussion please see:

If you really do need this, I have a patch to 1.1.12 that implements
a "list" command, to return all keys on a server.  However it's
really hacked together, probably does memory allocation the wrong
way, and may cause infinite loops due to a bug I never bothered to
track down.  Plus I never really learned anything interesting from
experimenting with it.  Its use is not recommended.

But if you've read the above and really still want it, email me.
  Jamie McCarthy
  jamie at

More information about the memcached mailing list