Skip to content

Commit 4005be1

Browse files
committed
Add documentation about RedisTagAwareAdapter
1 parent 4d52670 commit 4005be1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/cache/cache_invalidation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ To store tags, you need to wrap a cache adapter with the
5858
:method:`Symfony\\Component\\Cache\\Adapter\\TagAwareAdapterInterface::invalidateTags`
5959
method.
6060

61+
.. note::
62+
63+
When using a Redis backend, consider using :ref:`RedisTagAwareAdapter <redis-tag-aware>` that is optimized for this purpose.
64+
6165
The :class:`Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter` class implements
6266
instantaneous invalidation (time complexity is ``O(N)`` where ``N`` is the number
6367
of invalidated tags). It needs one or two cache adapters: the first required

0 commit comments

Comments
 (0)