@@ -24,8 +24,6 @@ Installation
24
24
25
25
.. include :: /components/require_autoload.rst.inc
26
26
27
- .. _cache-psr-6-versus-simple-cache-psr-16 :
28
-
29
27
Cache Contracts versus PSR-6
30
28
----------------------------
31
29
@@ -37,17 +35,6 @@ This component includes *two* different approaches to caching:
37
35
:ref: `Cache Contracts <cache-component-contracts >`:
38
36
A simple yet powerful way to store, fetch and remove values from a cache.
39
37
40
- .. tip ::
41
-
42
- Using the Cache Contracts approach is recommended: using it requires less
43
- code boilerplate and provides cache stampede protection by default.
44
-
45
- .. tip ::
46
-
47
- The component also contains adapters to convert between PSR-6, PSR-16 and
48
- Doctrine caches. See :doc: `/components/cache/psr6_psr16_adapters ` and
49
- :doc: `/components/cache/adapters/doctrine_adapter `.
50
-
51
38
.. _cache-component-contracts :
52
39
53
40
Cache Contracts
@@ -121,6 +108,17 @@ recompute::
121
108
return '...';
122
109
}, $beta);
123
110
111
+ .. tip ::
112
+
113
+ Using the Cache Contracts approach is recommended: using it requires less
114
+ code boilerplate and provides cache stampede protection by default.
115
+
116
+ .. tip ::
117
+
118
+ The component also contains adapters to convert between PSR-6, PSR-16 and
119
+ Doctrine caches. See :doc: `/components/cache/psr6_psr16_adapters ` and
120
+ :doc: `/components/cache/adapters/doctrine_adapter `.
121
+
124
122
Available Cache Adapters
125
123
~~~~~~~~~~~~~~~~~~~~~~~~
126
124
@@ -199,8 +197,6 @@ Now you can create, retrieve, update and delete items using this cache pool::
199
197
200
198
For a list of all of the supported adapters, see :doc: `/components/cache/cache_pools `.
201
199
202
- .. _advanced-usage-psr-6 :
203
-
204
200
Advanced Usage
205
201
--------------
206
202
0 commit comments