K2hdkc::getSubkeys K2hdkc Class K2hdkc::queuePut

K2hdkc::queueGet

Gets a value from the queue

Description

    public function queueGet(
        string $prefix,
        bool $is_fifo = true,
        string $password = null): string|null {}

Gets a value from the queue.

Parameters

Return Values

Returns value on success or null on failure.

Examples

$ php -r '
$k2hdkc = new K2hdkc("./tests/slave.ini");
$k2hdkc->queuePut("test", "value");
var_dump($k2hdkc->queueGet("test"));
'

The above example will output:

string(5) "value"

See Also

K2hdkc::getSubkeys K2hdkc Class K2hdkc::queuePut