Flush Memcached

Memcached can be flushed by firing the following command

echo 'flush_all' | nc localhost 11211

This needs ‘nc’ to be installed. nc can be installed on ubuntu by the command

‘sudo apt-get install nc’

In case nc cannot be installed, another way to flush memcache is to use telnet.

type in
telnet localhost 11211
Once you get in , type flush_all followed by quit