PhpRedisConnector
class PhpRedisConnector implements Connector (View source)
Methods
Create a new connection.
Create a new clustered PhpRedis connection.
Build a single cluster seed string from an array.
Create the Redis client instance.
Establish a connection with the Redis host.
Create a new redis cluster instance.
Format the host using the scheme if available.
Details
Connection
connect(array $config, array $options)
Create a new 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 an 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.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.