Memcached

  • Port: 11211
  • Protocol: tcp

Table of content

Get stats

# Get version
echo "version" | nc -vn -w 1 ${ip} 11211 
# Get status     
echo "stats" | nc -vn -w 1 ${ip} 11211  
# Get slabs
echo "stats slabs" | nc -vn -w 1 ${ip} 11211
sudo apt install libmemcached-tools
# Get stats
memcstat --servers=${ip} 
# Get all items
memcdump --servers=${ip} 
# Get info inside the item(s)
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

results matching ""

    No results matching ""

    results matching ""

      No results matching ""