Category: redis

Use Redis in Symfony Insight

According to the documentation, SymfonyInsight has Redis preinstalled. However, I get this error message when running an analysis. bin/console doctrine:cache:clear-metadata In AbstractConnection.php line 155: Connection refused [tcp://127.0.0.1:6379] Script bin/console doctrine:cache:clear-metadata handling the post-install-cmd event returned with error code 111 I’m…

Symfony Cache across load balanced servers and blue-green deployment (for cache)

I’m currently using Symfony (4.4) across some load balanced, auto-scaling, servers to provide a stateless API authenticated by JSON Web Tokens. These servers are deployed by a Jenkins server, which uses Packer with Ansible provisioning. For both development and production…

How to override namespace argument in RedisAdapter for a Symfony4 app to cache

I want to use custom namespace in our RedisAdapter to cache in our Symfony4 app. However, when i want to set arguments like this in our services.yaml; cache.adapter.redis: class: SymfonyComponentCacheAdapterRedisAdapter arguments: – ‘@Redis’ – ‘app’ I see this error message:…