How to clear Memcached (1.4.x) stats from java
开发者_JS百科Running flush() on the java-clients we've tried (SpyMemcacheD and Danga) does not reset the statistics on the memcached server.
Does anyone know a good way to do this? I could implement a telnet client that sends
stats reset
But that seems excessive
Did you try the following?
c.getStats("reset");
If you have MemcachedClient object then you can call the flush method with the help of object. It will reset the all the value stored in MemcachedClient object the to null.
精彩评论