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, 23 Mar 2012

view this page in

TokyoTyrant::setMaster

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::setMasterSet the replication master

Opis

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

Sets the replication master of the database

Ostrzeżenie

This method is not supported on 32bit platforms.

Parametry

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.

Zwracane wartości

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

Przykłady

Przykład #1 TokyoTyrant::setMaster() example

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

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

Zobacz też:

  • 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