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

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

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

Метод Описание
aggregate ( Predis\Connection\AggregateConnectionInterface $aggregate, array $parameters ) Aggregates single connections into an aggregate connection instance.
create ( mixed $parameters ) : Predis\Connection\NodeConnectionInterface Creates a new connection object.
define ( string $scheme, mixed $initializer ) Defines or overrides the connection class identified by a scheme prefix.
undefine ( string $scheme ) Undefines the connection identified by a scheme prefix.

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

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

Aggregates single connections into an aggregate connection instance.
public aggregate ( Predis\Connection\AggregateConnectionInterface $aggregate, array $parameters )
$aggregate Predis\Connection\AggregateConnectionInterface Aggregate connection instance.
$parameters array List of parameters for each connection.

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

Creates a new connection object.
public create ( mixed $parameters ) : Predis\Connection\NodeConnectionInterface
$parameters mixed Initialization parameters for the connection.
Результат Predis\Connection\NodeConnectionInterface

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

Defines or overrides the connection class identified by a scheme prefix.
public define ( string $scheme, mixed $initializer )
$scheme string Target connection scheme.
$initializer mixed Fully-qualified name of a class or a callable for lazy initialization.

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

Undefines the connection identified by a scheme prefix.
public undefine ( string $scheme )
$scheme string Target connection scheme.