Modify an item's expiration time, keeping it alive without modifying it.
Touch (set expiration time) on a number of values in the cache.
Values larger than 30*24*60*60 seconds (30 days) are interpreted as absolute times (from the epoch). All other members should be set to zero.
- Example
touch->v.v0.key = "my-key";
touch->v.v0.nkey = strlen(item->v.v0.key);
touch->v.v0.exptime = 300;
- Parameters
-
instance | the instance used to batch the requests from |
cookie | A cookie passed to all of the notifications from this command |
num | the total number of elements in the commnands array |
commands | the array containing the items to touch |
- Returns
- The status of the operation
typedef void(* lcb_touch_callback)(lcb_t instance, const void *cookie, lcb_error_t error, const lcb_touch_resp_t *resp) |
The callback function for a touch request.
- Parameters
-
instance | the instance performing the operation |
cookie | the cookie associated with with the command |
error | The status of the operation |
resp | More information about the operation |
- Stability
- Committed: