Skip to content

Commit

Permalink
Document connection schemes for redis
Browse files Browse the repository at this point in the history
  • Loading branch information
sebdesign committed Aug 27, 2020
1 parent ac8a7ba commit a3a826c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,25 @@ The default server configuration should suffice for development. However, you ar

],

#### Configuring Schemes

It is possible to specify the connection scheme for each Redis server. By default clients are using the `tcp` scheme,
but if you want to leverage TLS/SSL encryption when connecting to secured Redis instances, you should use the `tls` scheme:

'redis' => [

'client' => env('REDIS_CLIENT', 'phpredis'),

'default' => [
'scheme' => 'tls',
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DB', 0),
],

],

#### Configuring Clusters

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

0 comments on commit a3a826c

Please sign in to comment.