Developing a
memcached
Application
1380
decr key value [noreply]
Where:
•
key
: The key name.
•
value
: An integer to be used as the increment or decrement value.
•
noreply
: Tells the server not to reply to the command.
The response is:
•
NOT_FOUND
: The specified key could not be located.
•
value
: The new value associated with the specified key.
Values are assumed to be unsigned. For
decr
operations, the value is never decremented below 0.
For
incr
operations, the value wraps around the 64-bit maximum.
• Statistics commands:
stats
The
stats
command provides detailed statistical information about the current status of the
memcached
instance and the data it is storing.
Statistics commands take the form:
STAT [name] [value]
Where:
•
name
: The optional name of the statistics to return. If not specified, the general statistics are
returned.
•
value
: A specific value to be used when performing certain statistics operations.
The return value is a list of statistics data, formatted as follows:
STAT name value
The statistics are terminated with a single line,
END
.
For more information, see
Section 15.6.4, “Getting
memcached
Statistics”
.
For reference, a list of the different commands supported and their formats is provided below.
Table 15.2.
memcached
Command Reference
Command
Command Formats
set
set key flags exptime length
,
set key flags exptime
length noreply
add
add key flags exptime length
,
add key flags exptime
length noreply
replace
replace key flags exptime length
,
replace key flags
exptime length noreply
append
append key length
,
append key length noreply
prepend
prepend key length
,
prepend key length noreply
cas
cas key flags exptime length casunique
,
cas key flags
exptime length casunique noreply
get
get key1 [key2 ... keyn]
gets
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...