k2hdkcpx_cas_decrement
Decrements a value using CAS operation
Description
/**
* @param resource $handle_res
*/
function k2hdkcpx_cas_decrement(
$handle_res,
string $key,
string $password = null,
int $expiration_duration = 0): bool {}
Decrements a value using CAS operation.
Parameters
- handle_res
Specify the chmpx handle thatk2hdkcpx_open
returns. - key
Specify the key to decrement. - 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::casDecrement - Decrements a value using CAS operation