How to flush all the data from Memcached using command line

Use following command:

echo "flush_all" | nc 127.0.0.1 11211

Advertisements