Connection
telnet hostname 11211
Connect to Memcached server via Telnet
nc hostname 11211
Connect to Memcached server via netcat
Basic Commands
get key
Retrieve value of key
set key flags exptime bytes [noreply]
Store key-value pair (followed by value on next line)
add key flags exptime bytes [noreply]
Add key-value if key doesn't exist
replace key flags exptime bytes [noreply]
Replace key-value if key exists
append key flags exptime bytes [noreply]
Append data to existing key
prepend key flags exptime bytes [noreply]
Prepend data to existing key
delete key [noreply]
Delete key-value pair
Statistics
stats
Show general server statistics
stats items
Show statistics about items stored
stats slabs
Show statistics about slabs
stats sizes
Show statistics about sizes
stats settings
Show server settings
stats reset
Reset statistics counters
Cache Management
flush_all [delay]
Invalidate all items (optionally after delay seconds)
version
Display server version
quit
Close connection
Increment/Decrement
incr key value
Increment key by value
decr key value
Decrement key by value
Touch
touch key exptime
Update expiration time of key
Get Operations
gets key1 [key2 ...]
Retrieve with CAS token
cas key flags exptime bytes unique_cas_token
Check and set operation