Package: python3-memcache
Version: 1.59-5
Severity: normal

Example:

import memcache
m = memcache.Client(["127.0.0.1:11211"])
m.set("foo", "bar")
print(m.delete("foo"))
print(m.delete("foo"))

Output:
1
1

delete() returns 1 even though the key no longer exists.
On the protocol level it looks different:

telnet localhost 11211
set foo 0 0 3 data
bar
STORED
delete foo
DELETED
delete foo
NOT_FOUND

Memcached returns NOT_FOUND, so I expect delete() to return 0, False or None, 
but not 1.

Reply via email to