libyrmcds
memcached/yrmcds client library for C
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
yrmcds_error yrmcds_incr ( yrmcds c,
const char *  key,
size_t  key_len,
uint64_t  value,
int  quiet,
uint32_t *  serial 
)

Send Increment/IncrementQ command.

Parameters
cA pointer to yrmcds.
keyKey data.
key_lenLength of key.
valueAmount to add.
quiet0 to send Increment, other values to send IncrementQ.
serialA pointer to uint32_t, or NULL.
Returns
0 if succeeded. Other values indicate an error.

This function sends Increment/IncrementQ command to the server. If key is not found, the command will fail.

If serial is not NULL, the serial number of the request will be stored if the command was sent successfully.