summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2020-02-14 16:05:33 -0800
committerdormando <dormando@rydia.net>2020-02-14 16:05:33 -0800
commitecf8e944e54c4f7ca21d8c6af5b2ef110a9e4189 (patch)
tree0e702747c136b4536e331f30c82e1c661e3edbbd /doc
parent95c67710aaf5cfe188d94b510faef8c66d6f5604 (diff)
downloadmemcached-ecf8e944e54c4f7ca21d8c6af5b2ef110a9e4189.tar.gz
meta: make return codes more generic
ST/DE/HD all mean "okay". EX/NF/etc are already reused. VA has different response parsing. EN/MN are specific. future commands should be able to reuse most of these. In the odd case new ones are added, clients would have to be updated. Generally they shouldn't have to be.
Diffstat (limited to 'doc')
-rw-r--r--doc/protocol.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/protocol.txt b/doc/protocol.txt
index 00188b1..8440ca9 100644
--- a/doc/protocol.txt
+++ b/doc/protocol.txt
@@ -516,9 +516,9 @@ VA <size> <flags>*\r\n
optional, requiring the 'v' flag to be supplied.
If the request did not ask for a value in the response (v) flag, the server
-response instead looks like:
+response looks like:
-HD <flags>*\r\n
+OK <flags>*\r\n
If the request resulted in a miss, the response looks like:
@@ -594,7 +594,7 @@ access time.
- v: return item value in <data block>
The data block for a metaget response is optional, requiring this flag to be
-passed in. The response code also changes from "HD" to "VA <size>"
+passed in. The response code also changes from "OK" to "VA <size>"
These flags can modify the item:
- N(token): vivify on miss, takes TTL as a argument
@@ -681,7 +681,7 @@ the reply, which is of the format:
Where CD is one of:
-- "ST" (STORED), to indicate success.
+- "OK" (STORED), to indicate success.
- "NS" (NOT_STORED), to indicate the data was not stored, but not
because of an error.
@@ -728,7 +728,7 @@ See description under 'Meta Get'
Noreply is a method of reducing the amount of data sent back by memcached to
the client for normal responses. In the case of metaset, a response that would
-start with "ST" (STORED) will not be sent. Any other code, such as "EX"
+start with "OK" will not be sent. Any other code, such as "EX"
(EXISTS) will still be returned.
Errors are always returned.
@@ -752,7 +752,7 @@ The response is in the format:
Where CD is one of:
-- "DE" (DELETED), to indicate success
+- "OK" (DELETED), to indicate success
- "NF" (NOT_FOUND), to indicate that the item with this key was not found.