Wednesday, October 2, 2013

Memcached debugging using telnet


Telnet for Memcached

You can use telnet for doing some debugging for Memcache . 

Connect using telnet , port is usually 11211

telnet {memcachehost}  11211

commands

general  purpose to find version , memory etc
stats

Remove everything 
flush_all

Keys - there is no way to list all the keys 
get the stats items using 

stats items

request cache dump of each slab id with limit

stats cachedump 3 10

3 refers to the slab id
10  limit 

exit 
quit

No comments: