From 4ed2f335ac64db5a5ecb68323869dbe1d0ff80e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 30 Mar 2020 00:09:15 +0200 Subject: [PATCH] Use Redis for cache on Heroku demo. --- config/packages/demo/cache.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 config/packages/demo/cache.yaml diff --git a/config/packages/demo/cache.yaml b/config/packages/demo/cache.yaml new file mode 100644 index 00000000..ed954c6b --- /dev/null +++ b/config/packages/demo/cache.yaml @@ -0,0 +1,22 @@ +framework: + cache: + # Unique name of your app: used to compute stable namespaces for cache keys. + prefix_seed: Part-DB/Part-DB + + # The "app" cache stores to the filesystem by default. + # The data in this cache should persist between deploys. + # Other options include: + + # Redis + app: cache.adapter.redis + default_redis_provider: '%env(REDISCLOUD_URL)' + + # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues) + #app: cache.adapter.apcu + + # Namespaced pools use the above "app" backend by default + pools: + # Here all things related to cache the tree structures + tree.cache: + adapter: cache.app + tags: true