class Illuminate / Redis / RedisManager
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

RedisManager

Implements

Properties

protected

$app Application

The application instance.

Default: null
protected

$driver string

The name of the default driver.

Default: null
protected

$customCreators array

The registered custom driver creators.

Default: []
protected

$config array

The Redis server configurations.

Default: null
protected

$connections mixed

The Redis connections.

Default: null
protected

$events bool

Indicates whether event dispatcher is set on connections.

Default: false

Methods

public

__construct ( $app , $driver , array $config ) : void

Create a new Redis manager instance.

Parameters

public

connection ( $name ) : Connection

Get a Redis connection by name.

Parameters

  • $name string|null
public

resolve ( $name ) : Connection

Resolve the given connection by name.

Parameters

  • $name string|null
protected

resolveCluster ( $name ) : Connection

Resolve the given cluster connection by name.

Parameters

  • $name string
protected

configure ( Connection $connection , $name ) : Connection

Configure the given connection to prepare it for commands.

Parameters

protected

connector ( ) : Connector |null

Get the connector instance for the current driver.

protected

parseConnectionConfiguration ( $config ) : array

Parse the Redis connection configuration.

Parameters

  • $config mixed
public

connections ( ) : array

Return all of the created connections.

public

enableEvents ( ) : void

Enable the firing of Redis command events.

public

disableEvents ( ) : void

Disable the firing of Redis command events.

public

setDriver ( $driver ) : void

Set the default driver.

Parameters

  • $driver string
public

purge ( $name ) : void

Disconnect the given connection and remove from local cache.

Parameters

  • $name string|null
public

extend ( $driver , Closure $callback ) : $this

Register a custom driver creator Closure.

Parameters

public

__call ( $method , $parameters ) : mixed

Pass methods onto the default Redis connection.

Parameters

  • $method string
  • $parameters array