class Illuminate / Redis / Connectors / PhpRedisConnector

PhpRedisConnector

Implements

Methods

public

connect ( array $config , array $options ) : PhpRedisConnection

Create a new connection.

Parameters

  • $config array
  • $options array
public

connectToCluster ( array $config , array $clusterOptions , array $options ) : PhpRedisClusterConnection

Create a new clustered PhpRedis connection.

Parameters

  • $config array
  • $clusterOptions array
  • $options array
protected

buildClusterConnectionString ( array $server ) : string

Build a single cluster seed string from an array.

Parameters

  • $server array
protected

createClient ( array $config ) : Redis

Create the Redis client instance.

Parameters

  • $config array
protected

establishConnection ( $client , array $config ) : void

Establish a connection with the Redis host.

Parameters

protected

createRedisClusterInstance ( array $servers , array $options ) : RedisCluster

Create a new redis cluster instance.

Parameters

  • $servers array
  • $options array
protected

formatHost ( array $options ) : string

Format the host using the scheme if available.

Parameters

  • $options array