Send Decrement/DecrementQ command.
- Parameters
-
| c | A pointer to yrmcds. |
| key | Key data. |
| key_len | Length of key. |
| value | Amount to add. |
| initial | Initial value used when key does not exist. |
| expire | Expiration time. 0 disables expiration. |
| quiet | 0 to send Decrement, other values to send DecrementQ. |
| serial | A pointer to uint32_t, or NULL. |
- Returns
- 0 if succeeded. Other values indicate an error.
This function sends Decrement/DecrementQ command to the server. Unlike yrmcds_decr(), this function creates a new object with initial and expire when key is not found.
If serial is not NULL, the serial number of the request will be stored if the command was sent successfully.