K2hdkc::keyQueueGet K2hdkc Class K2hdkc::remove

K2hdkc::keyQueuePut

Puts a key/value pair on the queue

Description

    public function keyQueuePut(
        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

Return Values

Returns true on success or false on failure.

Examples

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

The above example will output:

bool(true)
array(1) {
  ["key"]=>
  string(5) "value"
}

See Also

K2hdkc::keyQueueGet K2hdkc Class K2hdkc::remove