flush memcached via command line

Just this simple command will flush the memcached cache:

echo “flush_all” | nc 127.0.0.1 11211

assuming that it runs on the localhost with the default port.