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