File tree 1 file changed +10
-0
lines changed
components/cache/adapters
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,20 @@ Below are common examples of valid DSNs showing a combination of available value
94
94
'redis:?host[localhost]&host[localhost:6379]&host[/var/run/redis.sock:]&auth=my-password&redis_cluster=1'
95
95
);
96
96
97
+ // Redis Sentinel is also supported in the same way
98
+ // set the redis_sentinel parameter to the name of your service group
99
+ RedisAdapter::createConnection(
100
+ 'redis:?host[redis1:26379]&host[redis2:26379]&host[redis3:26379]&redis_sentinel=mymaster'
101
+ );
102
+
97
103
.. versionadded :: 4.2
98
104
99
105
The option to define multiple servers in a single DSN was introduced in Symfony 4.2.
100
106
107
+ .. versionadded :: 4.3
108
+
109
+ Redis Sentinel support was introduced in Symfony 4.3.
110
+
101
111
.. note ::
102
112
103
113
See the :class: `Symfony\\ Component\\ Cache\\ Traits\\ RedisTrait ` for more options
You can’t perform that action at this time.
0 commit comments