K2hKeyQueue::__construct
Creates a K2hKeyQueue instance
Description
public K2hKeyQueue::__construct ( mixed $handle_res [, bool $is_fifo [, string $prefix ]] )
Creates a K2hKeyQueue instance.
Parameters
- handle_res
Specifies the k2hash (.k2h) file handle that k2hpx_open returns. - is_fifo
Specifies true if the order of the K2hKeyQueue is FIFO, otherwise false. - prefix
Specifies the prefix of the K2hKeyQueue.
Examples
- Example 1 - Creates a K2hKeyQueue instance
<?php
$handle = k2hpx_open_mem();
$k2hkeyqueue = new K2hKeyQueue($handle, true, "test_queue_");
var_dump($k2hkeyqueue);
unset($k2hkeyqueue);
k2hpx_close($handle);
?>
The above example will output:
object(K2hKeyQueue)#1 (0) {
}
See Also
- K2hash::getKeyQueue - Gets a K2hKeyQueue object