Skip to content

Commit

Permalink
Add info config of sentinel
Browse files Browse the repository at this point in the history
Add the sentinel config from laravel/framework#18850 to docs.
  • Loading branch information
tomswinkels committed Jun 3, 2019
1 parent cd16942 commit 1ad6a4b
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 @@ -95,6 +95,25 @@ In addition to the default `host`, `port`, `database`, and `password` server con
'database' => 0,
'read_write_timeout' => 60,
],

Some option if you use sentinel:

'redis' => [
'client' => 'predis',
'sentinel' => [
'tcp://10.24.5.136:26379?timeout=0.100',
'tcp://10.24.5.137:26379?timeout=0.100',
'tcp://10.24.5.138:26379?timeout=0.100',
'options' => [
'replication' => 'sentinel',
'service' => env('REDIS_SENTINEL_SERVICE', 'mymaster'),
'parameters' => [
'password' => env('REDIS_PASSWORD', null),
'database' => 0,
],
],
],
],

<a name="phpredis"></a>
### PhpRedis
Expand Down

0 comments on commit 1ad6a4b

Please sign in to comment.