How to tell if memcache was flushed programatically?

How can I tell if memcache was flushed programatically?

If I issues a echo flush_all | netcat localhost 11211 to memcache how can I tell it actually worked? I am writing some code to flush all servers and want to make sure they all received the command.


So far it seems as one way to do it is to echo stats | netcat localhost 11211 and look at STAT cmd_flush and see if the number has incremented.

`echo stats | netcat localhost 11211 | sed --silent '/cmd_flush/p'

I can then compare this and see if it changed.

Category: memcached Time: 2016-07-28 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.251 (s). 12 q(s)