killme2008 / xmemcached

High performance, easy to use multithreaded memcached client in java.
http://fnil.net/xmemcached
Apache License 2.0
757 stars 281 forks source link

Deleting a non-existent key returns false. #131

Closed sudo-ankitmishra closed 2 years ago

sudo-ankitmishra commented 3 years ago

When a key is to be deleted from Memcached if is not present then the client is supposed to return NOT FOUND, but I get false.

Code Attachment. echo "delete kit" | nc 0.0.0.0 11214 it returns NOT FOUND

boolean isDeleted = memcachedClient.delete("kit"); System.out.println(isDeleted); this prints false. we want NOT FOUND here as well. Thanks,

killme2008 commented 2 years ago

This behavior is expected, deleting a NOT FOUND item returns false.