flush memcache contents from command line

flush memcache contents from command line

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! :)

What version of Zend am I running?

Segmenation fault – core dump error assembly 32bit code on 64bit machine

wireless not working on ubuntu 12.04 on dell inspiron

SSH without password not working: mac to ubuntu

You will have to enable the component called ‘universe’

Networking Vista and Ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*