See Get items from the cluster.
Unlock the key locked with lcb_get() with the lcb_GETCMDv0::lock option.
You should initialize the key
, nkey
and cas
member in the lcb_item_st structure for the keys to get. All other members should be set to zero.
unlock->version = 0;
unlock->v.v0.key = "my-key";
unlock->v.v0.nkey = strlen(unlock->v.v0.key);
unlock->v.v0.cas = 0x666;
- Parameters
-
instance | the handle to lcb |
command_cookie | A cookie passed to all of the notifications from this command |
num | the total number of elements in the commands array |
commands | the array containing the items to unlock |
- Returns
- The status of the operation
- Stability
- Committed:
lcb_unlock() Command structure
- See also
- lcb_GETRESPv0
Data Fields |
const void * |
key |
|
lcb_SIZE |
nkey |
|
lcb_cas_t |
cas |
You must populate this with the CAS. |
lcb_unlock() response structure
Data Fields |
const void * |
key |
|
lcb_SIZE |
nkey |
|
The callback function for an unlock 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: