TokyoTyrant::putCat

(PECL tokyo_tyrant >= 0.1.0) Concatenates to a record public TokyoTyrant TokyoTyrant::putCat ( mixed $keys [, string $value ] ) Appends a value into existing key or multiple values if keys is an array. The second parameter is mandatory if keys is a string. If the record does not exist a new record is created. Parameters: keys A string key or an array of key-value pairs

TokyoTyrant::putKeep

(PECL tokyo_tyrant >= 0.1.0) Puts a record public TokyoTyrant TokyoTyrant::putKeep ( mixed $keys [, string $value ] ) 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. If the key already exists this method throws an exception indicating that the records exists. Par

TokyoTyrant::put

(PECL tokyo_tyrant >= 0.1.0) Puts values public TokyoTyrant TokyoTyrant::put ( 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. If the key exists the value will be replaced with new value. Parameters:

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

(PECL tokyo_tyrant >= 0.1.0) Number of records in the database public int TokyoTyrant::num ( void ) Returns the number of records in the database Returns: Returns number of records in the database Examples: TokyoTyrant::num() example <?php /* Connect to a database on default port */ $tt = new TokyoTyrant("localhost"

TokyoTyrant::getIterator

(No version information available, might only be in Git) Get an iterator public TokyoTyrantIterator TokyoTyrant::getIterator ( void ) Gets an iterator for iterating all keys / values in the database. Returns: This method returns TokyoTyrantIterator object and throws TokyoTyrantException on failure. Examples: TokyoTyrant::getIterator()

TokyoTyrant::get

(PECL tokyo_tyrant >= 0.1.0) The get purpose public mixed TokyoTyrant::get ( mixed $keys ) This method is used to return a value or multiple values. This method accepts a string or an array as a value. Parameters: keys A string key or an array of string keys Returns: Returns a string or an array based on the given parameters. Throws a TokyoTyr

TokyoTyrant::out

(PECL tokyo_tyrant >= 0.1.0) Removes records public TokyoTyrant TokyoTyrant::out ( mixed $keys ) Removes a record or multiple records. This method accepts a string for a single key or an array of keys for multiple records. Parameters: keys A string key or an array of string keys Returns: This method returns the current object and throws TokyoT

TokyoTyrant::connectUri

(PECL tokyo_tyrant >= 0.1.0) Connects to a database public TokyoTyrant TokyoTyrant::connectUri ( string $uri ) Connects to a database using an uri Parameters: uri An URI to the database. For example tcp://localhost:1979/ Returns: This method returns the current object and throws TokyoTyrantException on failure.

TokyoTyrant::ext

(PECL tokyo_tyrant >= 0.1.0) Execute a remote script public string TokyoTyrant::ext ( string $name, int $options, string $key, string $value ) Executes a remote script extension. Parameters: name Name of the function to execute options Either TokyoTyrant::RDBXO_LCKREC for record locking and TokyoTyrant::RDBXO_LCKGLB for global lockin