k2hdkcpx_cas_increment
Increments a variable in a cluster by using a CAS operation
Description
/**
* @param resource $handle_res
*/
function k2hdkcpx_cas_increment(
$handle_res,
string $key,
string $password = null,
int $expiration_duration = 0): bool {}
Increments a value using CAS operation.
Parameters
- handle_res
Specify the chmpx handle thatk2hdkcpx_open
returns. - key
Specify the key. - password
Specify the passphrase for encrypting the value. - expiration_duration
Specify the expiration duration in seconds.
Return Values
Returns true
on success or false
on failure.
See Also
- K2hdkc::casIncrement - Increments a value using CAS operation