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.
Then I realized there is a reason why all of the programs did not really work for this high amount of keys.
When I read the keys with stats cachedump <slab-id> <limit>
it returns only a certain amount of keys which ends - in my case - by around 30k.
How can I get at least these 500k which may be in one slab?
All the "posts" and "answers" which suggest to use memdump
do not work. They have this limitation as well.
I am using memcached 1.4.25