k2hdkcpx_cas_init
Initializes a value using CAS operation
Description
/**
* @param resource $handle_res
*/
function k2hdkcpx_cas_increment(
$handle_res,
string $key,
string $password = null,
int $expiration_duration = 0): bool {}
Initializes a value using CAS operation.
Parameters
- handle_res
Specify the chmpx handle thatk2hdkcpx_open
returns. - key
Specify the key. - 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 or false
on failure.
See Also
- K2hdkc::casInit - Initializes a value using CAS operation