k2hdkcpx_key_queue_put
Puts a key/value pair on the queue
Description
/**
* @param resource $handle_res
*/
function k2hdkcpx_key_queue_put(
$handle_res,
string $prefix,
string $key,
string $val,
bool $is_fifo = true,
bool $is_check_attr = true,
string $password = null,
int $expiration_duration = 0): bool {}
Puts a key/value pair on the queue.
Parameters
- handle_res
Specify the chmpx handle thatk2hdkcpx_open
returns. - prefix
Specify the prefix of queue name - key
Specify the key to add to the queue - val
Specify the value to add to the queue - is_fifo
Specifytrue
if the order of the queue is FIFO(First-In-First-Out), otherwisefalse
. - is_check_attr
Specifytrue
to check the passphrase and expiration of the parent 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::keyQueuePut - Puts a pair of the key/value on the queue