How to flush all the data from Memcached using command line

Use following command:

echo "flush_all" | nc 127.0.0.1 11211

Advertisements

3 thoughts on “How to flush all the data from Memcached using command line

  1. of course 🙂 – Mark, its in commit 14555, also here:

    echo “flush_all
    quit
    ” | nc localhost 11211

    for elder, bourne shell or:

    echo -e “flush_all\nquit\n” | nc localhost 11211

    for bash.

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