FactoryInterface
in
Interface for classes providing a factory of connections to Redis nodes.
Tags
Table of Contents
- aggregate() : mixed
- Aggregates single connections into an aggregate connection instance.
- create() : NodeConnectionInterface
- Creates a new connection object.
- define() : mixed
- Defines or overrides the connection class identified by a scheme prefix.
- undefine() : mixed
- Undefines the connection identified by a scheme prefix.
Methods
aggregate()
Aggregates single connections into an aggregate connection instance.
public
aggregate(AggregateConnectionInterface $aggregate, array<string|int, mixed> $parameters) : mixed
Parameters
- $aggregate : AggregateConnectionInterface
-
Aggregate connection instance.
- $parameters : array<string|int, mixed>
-
List of parameters for each connection.
Return values
mixed —create()
Creates a new connection object.
public
create(mixed $parameters) : NodeConnectionInterface
Parameters
- $parameters : mixed
-
Initialization parameters for the connection.
Return values
NodeConnectionInterface —define()
Defines or overrides the connection class identified by a scheme prefix.
public
define(string $scheme, mixed $initializer) : mixed
Parameters
- $scheme : string
-
Target connection scheme.
- $initializer : mixed
-
Fully-qualified name of a class or a callable for lazy initialization.
Return values
mixed —undefine()
Undefines the connection identified by a scheme prefix.
public
undefine(string $scheme) : mixed
Parameters
- $scheme : string
-
Target connection scheme.