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

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

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

Метод Описание
getCurrent ( ) : Predis\Connection\NodeConnectionInterface Returns the connection instance currently in use by the aggregate connection.
getMaster ( ) : Predis\Connection\NodeConnectionInterface Returns the connection instance for the master Redis node.
getSlaves ( ) : Predis\Connection\NodeConnectionInterface Returns a list of connection instances to slave nodes.
switchTo ( string $connection ) Switches the internal connection instance in use.

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

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

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

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

Returns the connection instance for the master Redis node.
public getMaster ( ) : Predis\Connection\NodeConnectionInterface
Результат Predis\Connection\NodeConnectionInterface

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

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

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

Switches the internal connection instance in use.
public switchTo ( string $connection )
$connection string Alias of a connection