In case you want to dump the value of all keys stored in a memcache you could use `memdump` and `memcat` from the libmemcached project:
$ memdump --servers localhost:11211 | \ while read key; do echo $key; \ memcat --servers localhost:11211 $key; \ echo ""; done