开发者

How to clear Memcached (1.4.x) stats from java

开发者 https://www.devze.com 2023-01-09 09:05 出处:网络
开发者_JS百科Running flush() on the java-clients we\'ve tried (SpyMemcacheD and Danga) does not reset the statistics on the memcached server.

开发者_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.

0

精彩评论

暂无评论...
验证码 换一张
取 消