Redis is a popular in-memory data structure store which is used as a database, a cache and a message broker. Redis is also one of the most popular adapters of the Symfony Cache component and we've improved it in Symfony 4.4 with new features.

Added Redis Sentinel support¶

Redis Sentinel is a distributed system that provides high availability for Redis. It allows you to create a Redis deployment that resists certain kinds of failures without human intervention.

In Symfony 4.4, we've added support for it thanks to the new redis_sentinel option that you can add to the Redis connection DSN:

1 2 3 4 5 6 use Symfony\Component\Cache\Adapter\RedisAdapter ; // set the 'redis_sentinel' parameter to the name of your service group $client = RedisAdapter :: createConnection ( 'redis:?host[redis1:26379]&host[redis2:26379]&host[redis3:26379]&redis_sentinel=mymaster' );

That's all! The only caveat is that Sentinel also requires the Predis library.