From f41046a1babccfbd5738f96eb32435d610d4f17a Mon Sep 17 00:00:00 2001 From: Stephen Clouse Date: Thu, 9 May 2019 02:08:00 -0500 Subject: [PATCH 1/2] Document Redis Sentinel support for Cache --- components/cache/adapters/redis_adapter.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/cache/adapters/redis_adapter.rst b/components/cache/adapters/redis_adapter.rst index 987abb5e38c..e32fe4402de 100644 --- a/components/cache/adapters/redis_adapter.rst +++ b/components/cache/adapters/redis_adapter.rst @@ -94,10 +94,20 @@ Below are common examples of valid DSNs showing a combination of available value 'redis:?host[localhost]&host[localhost:6379]&host[/var/run/redis.sock:]&auth=my-password&redis_cluster=1' ); + // Redis Sentinel is also supported in the same way + // set the redis_sentinel parameter to the name of your service group + RedisAdapter::createConnection( + 'redis:?host[redis1:26379]&host[redis2:26379]&host[redis3:26379]&redis_sentinel=mymaster' + ); + .. versionadded:: 4.2 The option to define multiple servers in a single DSN was introduced in Symfony 4.2. +.. versionadded:: 4.3 + + Redis Sentinel support was introduced in Symfony 4.3. + .. note:: See the :class:`Symfony\\Component\\Cache\\Traits\\RedisTrait` for more options From 7e3540ec25880359412ecc059d2e20ad96a6248a Mon Sep 17 00:00:00 2001 From: Stephen Clouse Date: Thu, 9 May 2019 14:12:41 -0500 Subject: [PATCH 2/2] Change to 4.4 Add note about predis requirement --- components/cache/adapters/redis_adapter.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/cache/adapters/redis_adapter.rst b/components/cache/adapters/redis_adapter.rst index e32fe4402de..15e78a685e4 100644 --- a/components/cache/adapters/redis_adapter.rst +++ b/components/cache/adapters/redis_adapter.rst @@ -96,6 +96,7 @@ Below are common examples of valid DSNs showing a combination of available value // Redis Sentinel is also supported in the same way // set the redis_sentinel parameter to the name of your service group + // Sentinel support also requires the Predis library RedisAdapter::createConnection( 'redis:?host[redis1:26379]&host[redis2:26379]&host[redis3:26379]&redis_sentinel=mymaster' ); @@ -104,9 +105,9 @@ Below are common examples of valid DSNs showing a combination of available value The option to define multiple servers in a single DSN was introduced in Symfony 4.2. -.. versionadded:: 4.3 +.. versionadded:: 4.4 - Redis Sentinel support was introduced in Symfony 4.3. + Redis Sentinel support was introduced in Symfony 4.4. .. note:: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy