Oracle 5.0 Reference Manual page 1399

Table of Contents

Advertisement

Retrieval commands take the form:
get key1 [key2 .... keyn]
gets key1 [key2 ... keyn]
You can supply multiple keys to the commands, with each requested key separated by whitespace.
The server responds with an information line of the form:
VALUE key flags bytes [casunique]
Where:
• key: The key name.
• flags: The value of the flag integer supplied to the
stored.
• bytes: The size (excluding the terminating
• casunique: The unique 64-bit integer that identifies the item.
The information line is immediately followed by the value data block. For example:
get xyzkey\r\n
VALUE xyzkey 0 6\r\n
abcdef\r\n
If you have requested multiple keys, an information line and data block is returned for each key
found. If a requested key does not exist in the cache, no information is returned.
• Delete commands:
Deletion commands take the form:
delete key [time] [noreply]
Where:
• key: The key name.
• time: The time in seconds (or a specific Unix time) for which the client wishes the server to refuse
or
commands on this key. All add, replace, get, and
add
replace
this period.
operations succeed. After this period, the key is deleted permanently and all
set
commands are accepted.
If not supplied, the value is assumed to be zero (delete immediately).
• noreply: Tells the server not to reply to the command.
Responses to the command are either
or
to indicate that the specified key could not be found.
NOT_FOUND
• Increment/Decrement: incr,
The increment and decrement commands change the value of a key within the server without
performing a separate get/set sequence. The operations assume that the currently stored value is a
64-bit integer. If the stored value is not a 64-bit integer, then the value is assumed to be zero before
the increment or decrement operation is applied.
Increment and decrement commands take the form:
incr key value [noreply]
Developing a
memcached
delete
DELETED
decr
1379
Application
server when the value was
memcached
character sequence) of the stored value.
\r\n
to indicate that the key was successfully removed,
commands fail during
gets

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents