RedisFactory
in package
implements
FactoryInterface
Generic factory for instantiating session handlers
Tags
Interfaces, Classes, Traits and Enums
- FactoryInterface
Table of Contents
- __invoke() : object
- Create an object
- getConnection() : Credis_Client
- Given a configuration, build the client object.
Methods
__invoke()
Create an object
public
__invoke(ContainerInterface $container, string $requestedName[, null|array<string|int, mixed> $options = null ]) : object
Parameters
- $container : ContainerInterface
-
Service manager
- $requestedName : string
-
Service being created
- $options : null|array<string|int, mixed> = null
-
Extra options (optional)
Tags
Return values
object —getConnection()
Given a configuration, build the client object.
protected
getConnection(Config $config) : Credis_Client
Parameters
- $config : Config
-
Session configuration