Category Archives: Uncategorized

How to flush all the data from Memcached using command line

Use following command:

echo "flush_all" | nc 127.0.0.1 11211

How to see all the statistics about stored data into Memcached

Use Following command to see it:

echo "stats" | nc 127.0.0.1 11211

How to install & configure memcached on Linux

Use following command to install it

# yum install memcached

Configure the memcached by modifying following files:

vim /etc/rc.d/init.d/memcached

vim /etc/sysconfig/memcached

Add port & user in above files

then restart memcached

/etc/init.d/memcached restart