k2hdkcpx_cas_get
Gets a variable from a cluster using a CAS operation
Description
/**
* @param resource $handle_res
*/
function k2hdkcpx_cas_get(
$handle_res,
string $key,
string $password = null,
int $expiration_duration = 0): int {}
Gets a variable from a cluster using a CAS operation.
Parameters
- handle_res
Specify the chmpx handle thatk2hdkcpx_open
returns. - key
Specify the key. - subval
Specify the value. - check_attr
Specifytrue
when encryption
Return Values
Returns the value on success, otherwise 0(false).
See Also
- K2hdkc::casGet - Gets a value using CAS operation