I need save full cache on disk & restore later

Randy Wigginton krw at nobugz.com
Tue Nov 7 13:28:41 UTC 2006


See my "debugging" code of a couple weeks back to get all the keys.

On Nov 7, 2006, at 2:09 AM, sishen wrote:

> Andrew Velikoredchanin wrote:
>> Andrew Velikoredchanin пишет:
>>
>>> Hi!
>>>
>>> I need save all data from memcached to disk and restore later. I use
>>> Perl Cache::Memcached. How I can do it?
>>>
>>
>> May by I can get all keys from cache?
>> How?
>>
>>
>    Yes. you can use "stats slabs and then stats cachedump".  See  
> the api of the client you use.
>     Also something in the protocol document.
>    stats <args>\r\n
>
>    Depending on <args>, various internal data is sent by the  
> server. The
>    kinds of arguments and the data sent are not documented in this  
> vesion
>    of the protocol, and are subject to change for the convenience of
>    memcache developers.
>
>
>



More information about the memcached mailing list