Memcached: How to break the limitation when retrieving all keys
<p>Due to the fact I could not find any reliable program in the net which retrieves all memcache keys once the key count in a slab > 500k I wanted to write my own program in PHP.</p>

<p>Then I realized there is a reason why all of the programs did not really work for this high amount of keys.</p>

<p>When I read the keys with <code>stats cachedump &lt;slab-id&gt; &lt;limit&gt;</code> it returns only a certain amount of keys which ends - in my case - by around 30k.</p>

<p>How can I get at least these 500k which may be in one slab?</p>

<p>All the "posts" and "answers" which suggest to use <code>memdump</code> do not work. They have this limitation as well.</p>

<p>I am using <code>memcached 1.4.25</code></p>