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

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

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

Метод Описание
add ( Predis\Connection\NodeConnectionInterface $connection ) Adds a connection instance to the aggregate connection.
getConnectionByCommand ( Predis\Command\CommandInterface $command ) : Predis\Connection\NodeConnectionInterface Returns the connection instance in charge for the given command.
getConnectionById ( string $connectionID ) : Predis\Connection\NodeConnectionInterface | null Returns a connection instance from the aggregate connection by its alias.
remove ( Predis\Connection\NodeConnectionInterface $connection ) : boolean Removes the specified connection instance from the aggregate connection.

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

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

Adds a connection instance to the aggregate connection.
public add ( Predis\Connection\NodeConnectionInterface $connection )
$connection Predis\Connection\NodeConnectionInterface Connection instance.

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

Returns the connection instance in charge for the given command.
public getConnectionByCommand ( Predis\Command\CommandInterface $command ) : Predis\Connection\NodeConnectionInterface
$command Predis\Command\CommandInterface Command instance.
Результат Predis\Connection\NodeConnectionInterface

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

Returns a connection instance from the aggregate connection by its alias.
public getConnectionById ( string $connectionID ) : Predis\Connection\NodeConnectionInterface | null
$connectionID string Connection alias.
Результат Predis\Connection\NodeConnectionInterface | null

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

Removes the specified connection instance from the aggregate connection.
public remove ( Predis\Connection\NodeConnectionInterface $connection ) : boolean
$connection Predis\Connection\NodeConnectionInterface Connection instance.
Результат boolean Returns true if the connection was in the pool.