What's the simplest way to get a dump of all memcached keys into a file?

前端 未结 5 1918
挽巷
挽巷 2020-12-30 04:15

This is from just a single memcached server with around 20M keys (no expiry) and around 2G of data.

What\'s the easiest way to get a dump of all the key/value pairs

5条回答
  •  醉话见心
    2020-12-30 05:04

    There is a hardcoded limit of 2MB for the dump of a slab. Unless you rewrite the do_item_cachedump, you will not be able to get all keys out.

提交回复
热议问题