memcache dump and load

Paul Lindner lindner at
Thu Apr 12 22:47:02 UTC 2007

On Thu, Apr 12, 2007 at 10:40:43PM +0000, Brad Fitzpatrick wrote:
> This won't work.
> cachedump is just for visual inspection... it has a very small buffer.  It
> won't include everything.

I know that.  The max buffer value is a fixed string.  Next steps
would be to iterate over the total number of items in chunks.

> I have some local patches to add a command to shut down the server
> while dumping the cache (in a child process) to a binary file on disk,
> which then can be parsed (in Perl), and async "add"'d later to the newly
> running memcached.  I should post those.

That would be very useful.  I was going to go down that route myself
until I discovered the API calls.

Paul Lindner        ||||| | | | |  |  |  |   |   |
lindner at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the memcached mailing list