| API Call | client.unlock(key, casunique) | ||
| Asynchronous | no | ||
| Description | Unlock a previously locked key by providing the corresponding CAS value that was returned during the lock | ||
| Returns | Boolean (
Boolean (true/false)
) | ||
| Arguments | |||
String key | Document ID used to identify the value | ||
long casunique | Unique value used to verify a key/value combination | ||
| Exceptions | |||
InterruptedException | Interrupted Exception while waiting for value. | ||
OperationTimeoutException | Exception timeout occured while waiting for value. | ||
RuntimeException | Exception object specifying interruption while waiting for value. | ||
Unlock is supported with the couchbase-client library 1.0.2 onwards.