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

TokyoTyrantTable::get

(PECL tokyo_tyrant >= 0.1.0) Get a row public array TokyoTyrantTable::get ( mixed $keys ) Gets a row from table database. keys is a single integer for the primary key of the row or an array of integers for multiple rows. Parameters: keys The primary key, can be a string or an integer Returns: Returns the row as an array

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::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::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::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::putNr

(PECL tokyo_tyrant >= 0.1.0) Puts value public TokyoTyrant TokyoTyrant::putNr ( mixed $keys [, string $value = NULL ] ) Puts a key-value pair into the database or multiple key-value pairs. If keys is string then the second parameter value defines the value. The second parameter is mandatory if keys is a string. This method does not wait for the response from the server. Parameters:

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::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