TokyoTyrant::setMaster
(PECL tokyo_tyrant >= 0.1.0)
TokyoTyrant::setMaster — تعیین ارباب کپی
Description
public mixed TokyoTyrant::setMaster
( string $host
, int $port
, int $timestamp
[, bool $check_consistency = true
] )
تعیین ارباب کپی پایگاه داده
Warning
این متد در 32bit پشتیبانی نمیشود.
Parameters
- host
-
نام میزبان ارباب کپی. اگرNULL کپی غیرفعال میشود.
- port
-
انتقال ارباب کپی
- timestamp
-
شروع برچسب زمانی در میلی ثانیه
- check_consistency
-
بررسی پایداری.
Return Values
بازگرداندن شی فعلی در صورت موفقیت و ایجاد TokyoTyrantException در صورت شکست.
Examples
Example #1 مثال TokyoTyrant::setMaster()
<?php
/* Connect to a database */
$tt = new TokyoTyrant("tokyotyrant.example.com");
/* Disable the replication */
$tt->setMaster(NULL, 0, 0);
?>
See Also
- Classname::Method()
There are no user contributed notes for this page.
