TokyoTyrantTable::genUid

(PECL tokyo_tyrant >= 0.1.0) Generate unique id public int TokyoTyrantTable::genUid ( void ) Generates an unique id inside the table database. In table databases rows are referenced using a numeric primary key. Returns: Returns an unique id or throws TokyoTyrantException on error Examples: TokyoTyrantTable::genUid() example

TokyoTyrantTable::add

(PECL tokyo_tyrant >= 0.1.0) Adds a record public void TokyoTyrantTable::add ( string $key, mixed $increment [, string $type ] ) This method is not supported with table databases. Parameters: key The string key increment The amount to increment type TokyoTyrant::RDB_RECINT or TokyoTyrant::RDB_RECD

TokyoTyrant::vanish

(PECL tokyo_tyrant >= 0.1.0) Empties the database public mixed TokyoTyrant::vanish ( void ) Empties a remote database Returns: This method returns the current object and throws TokyoTyrantException on failure. Examples: TokyoTyrant::vanish() example <?php $tt = new TokyoTyrant("localhost"); $tt->vanish(); ?>

TokyoTyrant::tune

(PECL tokyo_tyrant >= 0.2.0) Tunes connection values public TokyoTyrant TokyoTyrant::tune ( float $timeout [, int $options = TokyoTyrant::RDBT_RECON ] ) Tunes database connection options. Parameters: timeout The objects timeout value (default: 5.0) options Bitmask of options to tune. This can be either 0 or TokyoTyrant::RDBT_RECON.

TokyoTyrant::sync

(PECL tokyo_tyrant >= 0.1.0) Synchronize the database public mixed TokyoTyrant::sync ( void ) Synchronizes the database on to the physical device Returns: This method returns the current object and throws TokyoTyrantException on failure.

TokyoTyrant::stat

(PECL tokyo_tyrant >= 0.1.0) Get statistics public array TokyoTyrant::stat ( void ) Returns statistics of the remote database Returns: Returns an array of key value pairs describing the statistics Examples: TokyoTyrant::stat() example <?php $tt = new TokyoTyrant("localhost"); var_dump($tt->stat()); ?> The

TokyoTyrant::size

(PECL tokyo_tyrant >= 0.1.0) Returns the size of the value public int TokyoTyrant::size ( string $key ) Returns the size of a value by key Parameters: key The key of which size to fetch Returns: Returns the size of the key or throw TokyoTyrantException on error Examples: TokyoTyran

TokyoTyrant::setMaster

(PECL tokyo_tyrant >= 0.1.0) Set the replication master public mixed TokyoTyrant::setMaster ( string $host, int $port, int $timestamp [, bool $check_consistency = true ] ) Sets the replication master of the database Parameters: host Hostname of the replication master. If NULL the replication is disabled. port Port of the replication

TokyoTyrant::restore

(PECL tokyo_tyrant >= 0.1.0) Restore the database public mixed TokyoTyrant::restore ( string $log_dir, int $timestamp [, bool $check_consistency = true ] ) Restore the database from the update log. Parameters: log_dir Directory where the log is timestamp Beginning timestamp with microseconds check_consistency

TokyoTyrant::putShl

(PECL tokyo_tyrant >= 0.1.0) Concatenates to a record public mixed TokyoTyrant::putShl ( string $key, string $value, int $width ) Concatenate to a record and shift to left. Parameters: key A string key value The value to concatenate width The width of the record Returns: T