Copies the database

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::copyCopies the database


public TokyoTyrant TokyoTyrant::copy ( string $path )

Makes a copy of the current database

Список параметров


Path to where to copy the database. The user running the remote database must have a write access to the directory.

Возвращаемые значения

This method returns the current object and throws TokyoTyrantException on failure.


Пример #1 TokyoTyrant::copy() example

= new TokyoTyrant("localhost"1978);

Смотрите также