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

Send GaTK/GaTKQ command.

Parameters
cA pointer to yrmcds.
keyKey data.
key_lenLength of key.
expireExpiration time. 0 disables expiration.
quiet0 to send GaTK, other values to send GaTKQ.
serialA pointer to uint32_t, or NULL.
Returns
0 if succeeded. Other values indicate an error.

This function sends GaTK/GaTKQ (get and touch) command to the server. Unlike yrmcds_get_touch(), the response to this request brings the key.

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