downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

TokyoTyrant::size> <TokyoTyrant::restore
[edit] Last updated: Fri, 25 May 2012

view this page in

TokyoTyrant::setMaster

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::setMasterレプリケーションのマスタを設定する

説明

public mixed TokyoTyrant::setMaster ( string $host , int $port , int $timestamp [, bool $check_consistency = true ] )

データベースレプリケーションのマスタを設定します。

警告

このメソッドは 32 ビットプラットフォームではサポートしていません。

パラメータ

host

レプリケーションマスタのホスト名。NULL の場合はレプリケーションが無効となります。

port

レプリケーションマスタのポート。

timestamp

開始時刻のタイムスタンプ (マイクロ秒)。

check_consistency

整合性のチェックを行うかどうか。

返り値

現在のオブジェクトを返します。失敗した場合は TokyoTyrantException をスローします。

例1 TokyoTyrant::setMaster() の例

<?php
/* データベースに接続します */
$tt = new TokyoTyrant("tokyotyrant.example.com");

/* レプリケーションを無効にします */
$tt->setMaster(NULL00);
?>

参考

  • Classname::Method()



add a note add a note User Contributed Notes TokyoTyrant::setMaster
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites