class
Illuminate
/
Redis
/
Connectors
/
PhpRedisConnector
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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
- $client Redis
- $config array
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