memcached

sudo apt-get install memcached

Default URL is http://localhost:11211

Test get stats

telnet localhost 11211

stats items

Test get key

telnet localhost 11211

stats cachedump [number] 100

get

telnet localhost 11211

get [key] 100

set

set [key] 0 900 9
memcached

flag → 0

exptime → 900 (expiry time in seconds)

bytes → 10 (size of data balue in bytes)

linux get command

echo "get [key]" | nc localhost 11211

ref : http://stackoverflow.com/questions/19560150/get-all-keys-set-in-memcached

 

Flash

telnet localhost 11211

flush_all
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s