Documentation

RedisManager
in package
implements Factory

Tags
mixin

\Illuminate\Redis\Connections\Connection

Interfaces, Classes and Traits

Factory

Table of Contents

$config  : array<string|int, mixed>
The Redis server configurations.
$connections  : mixed
The Redis connections.
$driver  : string
The name of the default driver.
__call()  : mixed
Pass methods onto the default Redis connection.
__construct()  : void
Create a new Redis manager instance.
connection()  : Connection
Get a Redis connection by name.
connections()  : array<string|int, mixed>
Return all of the created connections.
resolve()  : Connection
Resolve the given connection by name.
connector()  : PhpRedisConnector|PredisConnector
Get the connector instance for the current driver.
resolveCluster()  : Connection
Resolve the given cluster connection by name.

Properties

$config

The Redis server configurations.

protected array<string|int, mixed> $config

$connections

The Redis connections.

protected mixed $connections

$driver

The name of the default driver.

protected string $driver

Methods

__call()

Pass methods onto the default Redis connection.

public __call(string $method, array<string|int, mixed> $parameters) : mixed
Parameters
$method : string
$parameters : array<string|int, mixed>
Return values
mixed

__construct()

Create a new Redis manager instance.

public __construct(string $driver, array<string|int, mixed> $config) : void
Parameters
$driver : string
$config : array<string|int, mixed>
Return values
void

connection()

Get a Redis connection by name.

public connection([string|null $name = null ]) : Connection
Parameters
$name : string|null = null
Return values
Connection

connections()

Return all of the created connections.

public connections() : array<string|int, mixed>
Return values
array<string|int, mixed>

resolve()

Resolve the given connection by name.

public resolve([string|null $name = null ]) : Connection
Parameters
$name : string|null = null
Tags
throws
InvalidArgumentException
Return values
Connection

resolveCluster()

Resolve the given cluster connection by name.

protected resolveCluster(string $name) : Connection
Parameters
$name : string
Return values
Connection

Search results