xct's notes
Search…
Memcache

Commands

1
stats slabs
2
stats items
3
stats cachedump 1 0
4
get <value>
Copied!

Memcached-Tools

1
sudo apt-get install libmemcached-tools
Copied!
1
memcstat --servers=<ip>
2
memcdump --servers=<ip>
3
memccat --servers=<ip> keyname
4
memccp --servers=<ip> <localfile> # (file saved in key)
5
memcached-tool <ip>:<port> dump # easiest way to dump all
Copied!

LRU

There can be hidden items (LRU). Memcache has cold, warm & hot storage, depending on what is used most, this can lead to stats cachedump 1 0 not showing a key anymore (cachedump only looks only at cold). The command lru_crawler metadump all will show this. We can also force everything into cold storage using lru mode flat.

Monitor Changes

1
watch fetchers (freezes terminal, only outputs watch output)
Copied!

Authentication

Often unauthenticated (performance reasons). SASL can protect in binary mode but can be dictionary attacked.
Last modified 1yr ago