Skip to content

Commit 1ad6a4b

Browse files
authored
Add info config of sentinel
Add the sentinel config from laravel/framework#18850 to docs.
1 parent cd16942 commit 1ad6a4b

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
@@ -95,6 +95,25 @@ In addition to the default `host`, `port`, `database`, and `password` server con
9595
'database' => 0,
9696
'read_write_timeout' => 60,
9797
],
98+
99+
Some option if you use sentinel:
100+
101+
'redis' => [
102+
'client' => 'predis',
103+
'sentinel' => [
104+
'tcp://10.24.5.136:26379?timeout=0.100',
105+
'tcp://10.24.5.137:26379?timeout=0.100',
106+
'tcp://10.24.5.138:26379?timeout=0.100',
107+
'options' => [
108+
'replication' => 'sentinel',
109+
'service' => env('REDIS_SENTINEL_SERVICE', 'mymaster'),
110+
'parameters' => [
111+
'password' => env('REDIS_PASSWORD', null),
112+
'database' => 0,
113+
],
114+
],
115+
],
116+
],
98117

99118
<a name="phpredis"></a>
100119
### PhpRedis

0 commit comments

Comments
 (0)