k2hdkcpx_cas_set
Sets a value using CAS operation
Description
/**
* @param resource $handle_res
*/
function k2hdkcpx_cas_set(
$handle_res,
string $key,
int $old_val,
int $new_val,
string $password = null,
int $expiration_duration = 0): bool {}
Sets a value using CAS operation.
Parameters
- handle_res
Specify the chmpx handle thatk2hdkcpx_open
returns. - old_val
Specify the old value of the key. - new_val
Specify the new value of the key. - password
Specify the passphrase for encrypting the value. - expiration_duration
Specify the expiration duration in seconds.
Return Values
Returns true
on success, otherwise false
.
See Also
- K2hdkc::casSet - Sets a value using CAS operation