As I was looking the documentation in order to figure out how to use it in order to Cache APi results.
I cannot understand how to setup the configuration in order to make it work with either redis or predis.
I tried the following con figuration:
doctrine_cache:
aliases:
my_cache: 'redis'
providers:
redis:
host: '%redis_host%'
port: '%redis_port%'
aliases:
- my_cache
But as I was tryint to debug my container with:
php bin/console debug:container doctrine
I got the error:
"host" is an unrecognized Doctrine cache driver.
I also tried the following configuration:
doctrine_cache:
aliases:
my_cache: 'redis'
providers:
redis:
type: 'redis'
host: '%redis_host%'
port: '%redis_port%'
aliases:
- my_cache
With the very same error. Also on documentation is not very clear how to pass the configaration option. Futhermore as said there both redis and predis are natively provided with the bundle.