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 45
45
Redis and Memcached are examples of such adapters. If a DSN is used as the
46
46
provider then a service is automatically created.
47
47
48
+ .. _cache-app-system :
49
+
48
50
There are two pools that are always enabled by default. They are ``cache.app `` and
49
51
``cache.system ``. The system cache is used for things like annotations, serializer,
50
52
and validation. The ``cache.app `` can be used in your code. You can configure which
@@ -109,6 +111,13 @@ The Cache component comes with a series of adapters pre-configured:
109
111
* :doc: `cache.adapter.redis </components/cache/adapters/redis_adapter >`
110
112
* :ref: `cache.adapter.redis_tag_aware <redis-tag-aware-adapter >` (Redis adapter optimized to work with tags)
111
113
114
+ .. note ::
115
+
116
+ There's also a special ``cache.adapter.system `` adapter. It's recommended to
117
+ use it for the :ref: `system cache <cache-app-system >`. This adapter uses some
118
+ logic to dynamically select the best possible storage based on your system
119
+ (either PHP files or APCu).
120
+
112
121
Some of these adapters could be configured via shortcuts. Using these shortcuts
113
122
will create pools with service IDs that follow the pattern ``cache.[type] ``.
114
123
You can’t perform that action at this time.
0 commit comments