Skip to content

Commit 134aed4

Browse files
Update Cache component doc for 4.2
1 parent f83b88a commit 134aed4

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

components/cache.rst

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ Installation
2424
2525
.. include:: /components/require_autoload.rst.inc
2626

27-
.. _cache-psr-6-versus-simple-cache-psr-16:
28-
2927
Cache Contracts versus PSR-6
3028
----------------------------
3129

@@ -37,17 +35,6 @@ This component includes *two* different approaches to caching:
3735
:ref:`Cache Contracts <cache-component-contracts>`:
3836
A simple yet powerful way to store, fetch and remove values from a cache.
3937

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-
5138
.. _cache-component-contracts:
5239

5340
Cache Contracts
@@ -121,6 +108,17 @@ recompute::
121108
return '...';
122109
}, $beta);
123110

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+
124122
Available Cache Adapters
125123
~~~~~~~~~~~~~~~~~~~~~~~~
126124

@@ -199,8 +197,6 @@ Now you can create, retrieve, update and delete items using this cache pool::
199197

200198
For a list of all of the supported adapters, see :doc:`/components/cache/cache_pools`.
201199

202-
.. _advanced-usage-psr-6:
203-
204200
Advanced Usage
205201
--------------
206202

0 commit comments

Comments
 (0)