I am trying to use Redis to cache the result of a query and APC for metacache. According to the Symfony docs, all I have to do is.
doctrine: orm: auto_mapping: true metadata_cache_driver: apc result_cache_driver: type: redis host: localhost instance_class: Redis
Is it right to set the cache property for the doctrine? Also, when I google "use redis with symfony", I get results that tell me to use the SNCRedis package.
Do I need to use the SNCRedis package to use Redis for doctrine in Symfony? Also, what benefit does it provide on top of Symfony by default. I'm just a little confused here, as the documentation is sparse when it comes to caching in Symfony related to Doctrine. Can someone please let me know this.
symfony doctrine redis
nicholasnet
source share