From 0cb4c0d2bd2d7b84353a8e1e12d1dff03a9ce049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20R=C3=B6=C3=9Fner?= Date: Tue, 23 Nov 2021 11:36:22 +0100 Subject: [PATCH] Add hint about supported eviction policies of RedisTagAwareAdapter RedisTagAwareAdapter only supports `noeviction` and `volatile-*` eviction policies, so the former Redis config recommendation will disabling saving via the adapter, at all. --- components/cache/adapters/redis_adapter.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/cache/adapters/redis_adapter.rst b/components/cache/adapters/redis_adapter.rst index 0845b3bcb96..34c8f76fdc9 100644 --- a/components/cache/adapters/redis_adapter.rst +++ b/components/cache/adapters/redis_adapter.rst @@ -212,6 +212,8 @@ try to add data when no memory is available. An example setting could look as fo maxmemory 100mb maxmemory-policy allkeys-lru + +When using the :class:`Symfony\\Component\\Cache\\Adapter\\RedisTagAwareAdapter`, only ``noeviction`` and ``volatile-*`` eviction policies are supported by the adapter. We recommend ``volatile-lru`` though. Read more about this topic in the offical `Redis LRU Cache Documentation`_.