File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 5050 Redis and Memcached are examples of such adapters. If a DSN is used as the
5151 provider then a service is automatically created.
5252
53+ .. _cache-app-system :
54+
5355There are two pools that are always enabled by default. They are ``cache.app `` and
5456``cache.system ``. The system cache is used for things like annotations, serializer,
5557and validation. The ``cache.app `` can be used in your code. You can configure which
@@ -119,6 +121,13 @@ The Cache component comes with a series of adapters pre-configured:
119121
120122 ``cache.adapter.redis_tag_aware `` has been introduced in Symfony 5.2.
121123
124+ .. note ::
125+
126+ There's also a special ``cache.adapter.system `` adapter. It's recommended to
127+ use it for the :ref: `system cache <cache-app-system >`. This adapter uses some
128+ logic to dynamically select the best possible storage based on your system
129+ (either PHP files or APCu).
130+
122131Some of these adapters could be configured via shortcuts. Using these shortcuts
123132will create pools with service IDs that follow the pattern ``cache.[type] ``.
124133
You can’t perform that action at this time.
0 commit comments