title: Configuring which Redis adapter to use in Symfony Cache
body: <p>I want to make use of <code>Predis\Client</code> instead of <code>\Redis</code> for all the Redis connections. </p>
  
  <p>The Symfony docs <a href="https://symfony.com/doc/current/components/cache/adapters/redis_adapter.html#available-options" rel="nofollow noreferrer">on cache adapters</a> describe that you can give additional options to the <code>createConnection</code> method. 
  However, this is all autowired in the service container. The only thing I'm declaring is that I want to use Redis for caching:</p>
  
  <pre><code>framework:
    cache:
      app: cache.adapter.redis
      default_redis_provider: '%redis_dsn%'
  </code></pre>
  
  <p>Is there any way I can configure the default options for the RedisAdapter? Or is there another way that I can set Symfony always to use <code>Predis\Client</code> for Redis?</p>
  
  <p>Configuring the DSN with <code>?class=\Predis\Client</code> works, is this the optimal solution?</p>