I have tried several times and found that the action of flushAll method is difference from the flush_all telnet Memcached command:
//Add() some values
System.out.println("Add foo: " + mcClient.add("foo", "This is foo value"));
//Get() values
System.out.println("Get foo: " + mcClient.get("foo"));
System.out.println("Flush all key in cached: " + mcClient.flushAll());
the flushAll() method wipe out the cached while the flush_all command only set all items of the cache to invalidate state.
Is it a bug? or I just used it wrong way?