I would like to export all keys and values from a memcached server, using python-memcache. There is no such function in that module. How to do it then?
Perhaps something more complicated involving the "socket" module would be needed.
I would like to export all keys and values from a memcached server, using python-memcache. There is no such function in that module. How to do it then?
Perhaps something more complicated involving the "socket" module would be needed.
You're looking for the 'flush_all' memcache command: http://code.google.com/p/memcached/wiki/NewCommands#flush_all
With python-memcached, it looks something like this: