You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR\r\n
CLIENT_ERROR [error]\r\n
SERVER_ERROR [error]\r\n
Where,
- ERROR means client sent a non-existent command name
- CLIENT_ERROR means that command sent by the client does not conform to the protocol
- SERVER_ERROR means that there was an error on the server side that made processing of the command impossible
Storage Command Responses
STORED\r\n
NOT_STORED\r\n
EXISTS\r\n
NOT_FOUND\r\n
Where,
- STORED indicates success.
- NOT_STORED indicates the data was not stored because condition for an add or replace wasn't met.
- EXISTS indicates that the item you are trying to store with a cas has been modified since you last fetched it.
- NOT_FOUND indicates that the item you are trying to store with a cas does not exist.
Delete Command Responses
NOT_FOUND\r\n
DELETED\r\n
Retrival Responses
END\r\n
VALUE <key> <flags> <datalen> [<cas>]\r\n<data>\r\nEND\r\n
VALUE <key> <flags> <datalen> [<cas>]\r\n<data>\r\n[VALUE <key> <flags> <datalen> [<cas>]\r\n<data>]+\r\nEND\r\n
Arithmetic Responses
NOT_FOUND\r\n
<value>\r\n
Where,
- <value> - uint64_t : new key value after incr or decr operation
Touch Command Responses
NOT_FOUND\r\n
TOUCHED\r\n
Statistics Response
[STAT <name> <value>\r\n]+END\r\n
Misc Responses
OK\r\n
VERSION <version>\r\n
Notes
set always creates mapping irrespective of whether it is present on not.
add, adds only if the mapping is not present
replace, only replaces if the mapping is present
append and prepend command ignore flags and expiry values
noreply instructs the server to not send the reply even if there is an error.
decr of 0 is 0, while incr of UINT64_MAX is 0
maximum length of the key is 250 characters
expiry of 0 means that item never expires, though it could be evicted from the cache
non-zero expiry is either unix time (# seconds since 01/01/1970) or,
offset in seconds from the current time (< 60 x 60 x 24 x 30 seconds = 30 days)
expiry time is with respect to the server (not client)