略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: TokyoTyrant::copy

2024-12-23

TokyoTyrant::copy

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::copyCopies the database

说明

public TokyoTyrant::copy ( string $path ) : TokyoTyrant

Makes a copy of the current database

参数

path

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.

范例

Example #1 TokyoTyrant::copy() example

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

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/tokyotyrant.copy.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3