PHP Interface Predis\Connection\FactoryInterface

Author: Daniele Alessandri ([email protected])
Mostrar archivo Open project: tillkruss/redis-object-cache Interface Usage Examples

Public Methods

Method Description
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.

Method Details

aggregate() public method

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() public method

Creates a new connection object.
public create ( mixed $parameters ) : Predis\Connection\NodeConnectionInterface
$parameters mixed Initialization parameters for the connection.
return Predis\Connection\NodeConnectionInterface

define() public method

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() public method

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