PHP Интерфейс Predis\Connection\Replication\ReplicationInterface

Автор: Daniele Alessandri ([email protected])
Наследование: extends Predis\Connection\AggregateConnectionInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
getCurrent ( ) : Predis\Connection\NodeConnectionInterface Returns the connection in use by the replication backend.
getMaster ( ) : Predis\Connection\NodeConnectionInterface Returns the connection to the master server.
getSlaves ( ) : Predis\Connection\NodeConnectionInterface Returns a list of connections to slave servers.
switchToMaster ( ) Switches the internal connection in use to the master server.
switchToSlave ( ) Switches the internal connection in use to a random slave server.

Описание методов

getCurrent() публичный Метод

Returns the connection in use by the replication backend.
public getCurrent ( ) : Predis\Connection\NodeConnectionInterface
Результат Predis\Connection\NodeConnectionInterface

getMaster() публичный Метод

Returns the connection to the master server.
public getMaster ( ) : Predis\Connection\NodeConnectionInterface
Результат Predis\Connection\NodeConnectionInterface

getSlaves() публичный Метод

Returns a list of connections to slave servers.
public getSlaves ( ) : Predis\Connection\NodeConnectionInterface
Результат Predis\Connection\NodeConnectionInterface

switchToMaster() публичный Метод

Switches the internal connection in use to the master server.
public switchToMaster ( )

switchToSlave() публичный Метод

Switches the internal connection in use to a random slave server.
public switchToSlave ( )