RedisManager
class RedisManager implements Factory mixin Connection (View source)
Properties
protected string | $driver | The name of the default driver. |
|
protected array | $config | The Redis server configurations. |
|
protected mixed | $connections | The Redis connections. |
Methods
Create a new Redis manager instance.
Get a Redis connection by name.
Resolve the given connection by name.
Resolve the given cluster connection by name.
Get the connector instance for the current driver.
Return all of the created connections.
Pass methods onto the default Redis connection.
Details
void
__construct(string $driver, array $config)
Create a new Redis manager instance.
Connection
connection(string $name = null)
Get a Redis connection by name.
Connection
resolve(string|null $name = null)
Resolve the given connection by name.
protected Connection
resolveCluster(string $name)
Resolve the given cluster connection by name.
protected PhpRedisConnector|PredisConnector
connector()
Get the connector instance for the current driver.
array
connections()
Return all of the created connections.
mixed
__call(string $method, array $parameters)
Pass methods onto the default Redis connection.