Get the value for a key, lock the key from changes
getl key [ getl-expiry ]Where:
key (binary) -
Document ID used to identify the value
getl-expiry (numeric) -
Expiry time for lock
PHP (Couchbase PHP SDK)
$object->getAndLock($key [, $casarray ] [, $getl-expiry ])
Returns: scalar; supported values:
$object->getAndLockMulti($keycollection [, $casarray ] [, $getl-expiry ])
Returns: array (
Array of key/value pairs for each document, or key/error condition for each failure
)
Python
object.getl(key [, getl-expiry ])
Returns: (none)
.NET Client Library
object.GetWithLock-expiresat(key [, getl-expiry ])
Returns: CasResult<ulong> (
Cas result of bool
)
object.GetWithLock(key [, getl-expiry ])
Returns: IGetOperationResult (
Get operation result
)
object.ExecuteGetWithLock-expiresat(key [, getl-expiry ])
Returns: IGetOperationResult (
Get operation result
)
object.ExecuteGetWithLock(key [, getl-expiry ])
Returns: CasResult<ulong> (
Cas result of bool
)
object.ExecuteUnlock(key [, getl-expiry ])
Returns: IOperationResult (
Unlock operation result
)
object.Unlock(key [, getl-expiry ])
Returns: Boolean (
Boolean (true/false)
)
Java (spymemcached)
client.asyncGetLock(key [, getl-expiry ], transcoder)
Returns: Future<CASValue<T>> (
Asynchronous request value, as CASValue as Transcoded object
)
client.asyncGetLock(key [, getl-expiry ])
Returns: Future<CASValue<Object>> (
Asynchronous request value, as CASValue, as Object
)
client.getAndLock(key [, getl-expiry ])
Returns: CASValue<Object> (
CASValue as Object
)
client.getAndLock(key [, getl-expiry ], transcoder)
Returns: CASValue<T> (
CASValue as Transcoded object
)