K2hQueue Class
K2hQueue represents a queue that holds values by using K2HASH.
Elements in K2hQueue are ordered in FIFO of LIFO manner.
Class overview
K2hQueue {
public intfalsecount ( void )
public dump ([ mixed $output ] ) : bool
public isEmpty ( void ) : bool
public stringfalsepop ([ string $pass ] )
public push ( string $datavalue [, string $pass [, int $expire ]] ) : bool
public stringfalseread ([ int $pos [, string $pass ]] )
public remove ( int $count [, string $pass ] ) : bool
}
Method list
- K2hQueue::__construct - Creates a K2hQueue instance
- K2hQueue::count - Counts elements in the K2hQueue object
- K2hQueue::dump - Prints the elements in the K2hQueue object
- K2hQueue::isEmpty - Returns whether the K2hQueue is empty
- K2hQueue::pop - Removes and returns the removed element from the K2hQueue
- K2hQueue::push - Adds a value to the K2hQueue
- K2hQueue::read - Returns a key/value pair from the K2hQueue
- K2hQueue::remove - Removes a value from the K2hQueue