GoLang TokyoTyrant::copy

request it (55)
GoLang replacement for PHP's TokyoTyrant::copy [edit | history]



Do you know a GoLang replacement for PHP's TokyoTyrant::copy? Write it!

PHP TokyoTyrant::copy

PHP original manual for TokyoTyrant::copy [ show | php.net ]

TokyoTyrant::copy

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::copyCopies the database

Description

public TokyoTyrant TokyoTyrant::copy ( string $path )

Makes a copy of the current database

Parameters

path

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

Return Values

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

Examples

Example #1 TokyoTyrant::copy() example

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

See Also