Memcached
Port
: 11211
Protocol
: tcp
Table of content
Get stats
echo "version" | nc -vn -w 1 ${ip} 11211
echo "stats" | nc -vn -w 1 ${ip} 11211
echo "stats slabs" | nc -vn -w 1 ${ip} 11211
sudo apt install libmemcached-tools
memcstat --servers=${ip}
memcdump --servers=${ip}
memccat --servers=${ip} ${key1} ${key2} ${key3}
Access keys
# Get items of slabs with info
echo "stats items" | nc -vn -w 1 ${ip} 11211
# Get key names (the 0 is for unlimited output size)
echo "stats cachedump ${itemNumber} 0" | nc -vn -w 1 ${ip} 11211
# Get saved info
echo "get ${itemName}" | nc -vn -w 1 ${ip} 11211