PhpRedisConnector
class PhpRedisConnector implements Connector (View source)
Methods
Connection | connect(array $config, array $options) Create a new clustered PhpRedis connection. | |
Connection | connectToCluster(array $config, array $clusterOptions, array $options) Create a new clustered PhpRedis connection. | |
string | buildClusterConnectionString(array $server) Build a single cluster seed string from array. | |
Redis | createClient(array $config) Create the Redis client instance. | |
void | establishConnection(Redis $client, array $config) Establish a connection with the Redis host. | |
RedisCluster | createRedisClusterInstance(array $servers, array $options) Create a new redis cluster instance. | |
string | formatHost(array $options) Format the host using the scheme if available. |
Details
Connection connect(array $config, array $options)
Create a new clustered PhpRedis connection.
Connection connectToCluster(array $config, array $clusterOptions, array $options)
Create a new clustered PhpRedis connection.
protected string buildClusterConnectionString(array $server)
Build a single cluster seed string from array.
protected Redis createClient(array $config)
Create the Redis client instance.
protected void establishConnection(Redis $client, array $config)
Establish a connection with the Redis host.
protected RedisCluster createRedisClusterInstance(array $servers, array $options)
Create a new redis cluster instance.
protected string formatHost(array $options)
Format the host using the scheme if available.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/7.x/Illuminate/Redis/Connectors/PhpRedisConnector.html