[PATCH] cas command may return NOT_FOUND if the item was deleted
or never existed.
dormando
dormando at rydia.net
Fri Dec 21 09:03:19 UTC 2007
r689, botched the commit message, but I modified the patch to explicitly
say the item could've never existed.
Thanks! (yes, I'll get to reviewing the more complicated stuff too;)
burned out this week)
-Dormando
Tomash Brechko wrote:
> ---
> 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:
> ------------------
More information about the memcached
mailing list