We all love caching right? We have a bunch of ’em these days: query cache, file cache, page cache..
Ok, memcache.. what if you quickly wanted to flush all the contents of it on the server, just use this:
echo "flush_all" | nc
An example for local memcache could be:
echo "flush_all" | nc localhost 11211
you would see “OK” on the command prompt after successful clearing of the cache.
happy memcaching! 🙂