Skip to content

Commit a3a826c

Browse files
committed
Document connection schemes for redis
1 parent ac8a7ba commit a3a826c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

redis.md

+19
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,25 @@ The default server configuration should suffice for development. However, you ar
6060

6161
],
6262

63+
#### Configuring Schemes
64+
65+
It is possible to specify the connection scheme for each Redis server. By default clients are using the `tcp` scheme,
66+
but if you want to leverage TLS/SSL encryption when connecting to secured Redis instances, you should use the `tls` scheme:
67+
68+
'redis' => [
69+
70+
'client' => env('REDIS_CLIENT', 'phpredis'),
71+
72+
'default' => [
73+
'scheme' => 'tls',
74+
'host' => env('REDIS_HOST', '127.0.0.1'),
75+
'password' => env('REDIS_PASSWORD', null),
76+
'port' => env('REDIS_PORT', 6379),
77+
'database' => env('REDIS_DB', 0),
78+
],
79+
80+
],
81+
6382
#### Configuring Clusters
6483

6584
If your application is utilizing a cluster of Redis servers, you should define these clusters within a `clusters` key of your Redis configuration:

0 commit comments

Comments
 (0)