flush memcached

echo ‘flush_all’ | nc 127.0.0.1 11211

or

echo ‘flush_all’ | netcat 127.0.0.1 11211

or

nc 127.0.0.1 11211<<<"flush_all"