(PECL tokyo_tyrant >= 0.1.0)
TokyoTyrant::setMaster — Set the replication master
Sets the replication master of the database
This method is not supported on 32bit platforms.
Hostname of the replication master. If NULL the replication is disabled.
Port of the replication master
Beginning timestamp with microseconds
Whether to check consistency.
This method returns the current object and throws TokyoTyrantException on failure.
Beispiel #1 TokyoTyrant::setMaster() example
<?php
/* Connect to a database */
$tt = new TokyoTyrant("tokyotyrant.example.com");
/* Disable the replication */
$tt->setMaster(NULL, 0, 0);
?>