Send RaU/RaUQ 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. |
| quiet | 0 to send RaU, other values to send RaUQ. |
| serial | A pointer to uint32_t, or NULL. |
- Returns
- 0 if succeeded. Other values indicate an error.
This function sends RaU/RaUQ (replace and unlock) command to the server. The command will fail unless the object is locked by the same session.
If serial is not NULL, the serial number of the request will be stored if the command was sent successfully.