The TokyoTyrantIterator class
(PECL tokyo_tyrant >= 0.2.0)
简介
Provides an iterator for TokyoTyrant and TokyoTyrantTable objects. The iterator iterates over all keys and values in the database. TokyoTyrantIterator was added in version 0.2.0.
类摘要
TokyoTyrantIterator
implements Iterator {
/* Methods */
/* Inherited methods */
public
TokyoTyrant::connect (
string
$host
[,
int $port
= TokyoTyrant::RDBDEF_PORT [,
array $options
]] ) :
TokyoTyrant
public
TokyoTyrant::__construct ([
string
$host
[,
int $port
= TokyoTyrant::RDBDEF_PORT [,
array $options
]]] )
public
TokyoTyrant::restore (
string
$log_dir
,
int $timestamp
[,
bool $check_consistency
= TRUE
] ) :
mixed
public
TokyoTyrant::setMaster (
string
$host
,
int $port
,
int $timestamp
[,
bool $check_consistency
= TRUE
] ) :
mixed
public
TokyoTyrant::tune (
float
}
$timeout
[,
int $options
= TokyoTyrant::RDBT_RECON ] ) :
TokyoTyrant
Table of Contents
- TokyoTyrantIterator::__construct — Construct an iterator
- TokyoTyrantIterator::current — Get the current value
- TokyoTyrantIterator::key — Returns the current key
- TokyoTyrantIterator::next — Move to next key
- TokyoTyrantIterator::rewind — Rewinds the iterator
- TokyoTyrantIterator::valid — Rewinds the iterator