k2hdkcpx_key_queue_get
Gets a pair of the key/value from the queue
Description
/**
* @param resource $handle_res
*/
function k2hdkcpx_key_queue_get(
$handle_res,
string $prefix,
bool $is_fifo = true,
string $password = null,
int $expiration_duration = 0): array|null{}
Gets a pair of the key/value from the queue.
Parameters
- handle_res
Specify the chmpx handle thatk2hdkcpx_open
returns. - prefix
Specify the prefix of queue name - is_fifo
Specifytrue
if the order of the queue is FIFO(First-In-First-Out), otherwisefalse
. - password
Specify the passphrase for encrypting the value. - expiration_duration
Specify the expiration duration in seconds.
Return Values
Returns an array on success or null
on failure.
See Also
- K2hdkc::keyQueueGet - Gets a pair of the key/value from the queue