TokyoTyrant::copy

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::copyCopies the database

Beskrivelse

public TokyoTyrant TokyoTyrant::copy ( string $path )

Makes a copy of the current database

Parametre

path

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

Returnerings Værdier

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

Eksempler

Eksempel #1 TokyoTyrant::copy() example

<?php
$tt 
= new TokyoTyrant("localhost"1978);
$tt->copy("/tmp/foobar.tct");
?>

Se også

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top