File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
components/cache/adapters Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,10 @@ 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
- // Sentinel support also requires the Predis library
97
+ `Redis Sentinel `_, which provides high availability for Redis, is also supported
98
+ when using the Predis library. Use the ``redis_sentinel `` parameter to set the
99
+ name of your service group::
100
+
100
101
RedisAdapter::createConnection(
101
102
'redis:?host[redis1:26379]&host[redis2:26379]&host[redis3:26379]&redis_sentinel=mymaster'
102
103
);
@@ -195,3 +196,4 @@ Available Options
195
196
.. _`Predis` : https://packagist.org/packages/predis/predis
196
197
.. _`Predis Connection Parameters` : https://github.com/nrk/predis/wiki/Connection-Parameters#list-of-connection-parameters
197
198
.. _`TCP-keepalive` : https://redis.io/topics/clients#tcp-keepalive
199
+ .. _`Redis Sentinel` : https://redis.io/topics/sentinel
You can’t perform that action at this time.
0 commit comments