Memcache flush memory in Linux

 

To flush/clear the contents of memcached server use following command

echo 'flush_all' | nc localhost 11211

Where localhost is memcached hostname and 11211 is memcached port number.

Command syntax:

echo 'flush_all' | nc server_hostname memcached_port_number

-Sany

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s