Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетил 21151 программист и 1084 робота. Сейчас ищут 769 программистов ...
Приступая к работе

TokyoTyrant::setMaster - Set the replication master

Вернуться к: TokyoTyrant

TokyoTyrant::setMaster

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::setMasterSet the replication master

Описание

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

Sets the replication master of the database

Внимание

This method is not supported on 32bit platforms.

Список параметров

host

Hostname of the replication master. If NULL the replication is disabled.

port

Port of the replication master

timestamp

Beginning timestamp with microseconds

check_consistency

Whether to check consistency.

Возвращаемые значения

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

Примеры

Пример #1 TokyoTyrant::setMaster() example

<?php
/* Connect to a database */
$tt = new TokyoTyrant("tokyotyrant.example.com");

/* Disable the replication */
$tt->setMaster(NULL00);
?>

Смотрите также

  • Classname::Method()



Вернуться к: TokyoTyrant

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware