[PATCH] cas command may return NOT_FOUND if the item was deleted or never existed.

Tomash Brechko tomash.brechko at gmail.com
Thu Dec 20 13:51:43 UTC 2007


---
 trunk/server/doc/protocol.txt |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/trunk/server/doc/protocol.txt b/trunk/server/doc/protocol.txt
index efcd7eb..98d09c7 100644
--- a/trunk/server/doc/protocol.txt
+++ b/trunk/server/doc/protocol.txt
@@ -201,6 +201,9 @@ item is in a delete queue (see the "delete" command below).
 - "EXISTS\r\n" to indicate that the item you are trying to store with
 a "cas" command has been modified since you last fetched it.
 
+- "NOT_FOUND\r\n" to indicate that the item you are trying to store
+with a "cas" command has been deleted since you last fetched it.
+
 
 Retrieval command:
 ------------------
-- 
1.5.3.6.961.gecf4


More information about the memcached mailing list