Script listing all the keys on a memcache server

L'Antre du Tryphon

schedule
2013-03-21 | 03:35h
update
2013-06-08 | 19:25h
person
www.ctheroux.com
domain
www.ctheroux.com

Script listing all the keys on a memcache server

This script lists all the keys on a memcache server.

 #!/bin/bash nc localhost 11211 > /tmp/$$.1 <<EOF stats items EOF cut -d: -f2 /tmp/$$.1 | grep -v END | uniq | sed 's/^/stats cachedump /' \ | sed 's/$/ 1000/' > /tmp/$$.2 nc localhost 11211 < /tmp/$$.2 | grep -v '^END' | sort rm /tmp/$$.[12] 
Advertisement

Imprint
Responsible for the content:
www.ctheroux.com
Privacy & Terms of Use:
www.ctheroux.com
Mobile website via:
WordPress AMP Plugin
Last AMPHTML update:
23.04.2024 - 04:10:05
Privacy-Data & cookie usage: