|
yrmcds_error yrmcds_replace |
( |
yrmcds * |
c, |
|
|
const char * |
key, |
|
|
size_t |
key_len, |
|
|
const char * |
data, |
|
|
size_t |
data_len, |
|
|
uint32_t |
flags, |
|
|
uint32_t |
expire, |
|
|
uint64_t |
cas, |
|
|
int |
quiet, |
|
|
uint32_t * |
serial |
|
) |
| |
Send Replace/ReplaceQ command.
- Parameters
-
c | A pointer to yrmcds. |
key | Key data. |
key_len | Length of key . |
data | Data to be stored. |
data_len | Length of data . |
flags | Flags stored along with the data. |
expire | Expiration time. 0 disables expiration. |
cas | Try compare-and-swap. 0 disables CAS. |
quiet | 0 to send Replace, other values to send ReplaceQ. |
serial | A pointer to uint32_t , or NULL . |
- Returns
- 0 if succeeded. Other values indicate an error.
This function sends Replace/ReplaceQ command to the server. If serial is not NULL , the serial number of the request will be stored if the command was sent successfully.
|