Skip to content

Commit

Permalink
Update docs/components/cache.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Ruth Cheesley <ruth@ruthcheesley.co.uk>
  • Loading branch information
fakela and RCheesley committed Feb 16, 2024
1 parent 6c079d8 commit 67b70b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/components/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ From Symfony 3.4, the cache uses tag-aware adapters. If you want to clear all re
$item->set('yesa!!!');
$item->tag(['firstTag', 'secondTag']);
$item->expiresAfter(20000);
All you need to do now is to clear all tagged items:

.. code-block:: php
Expand Down

0 comments on commit 67b70b3

Please sign in to comment.