We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 82de448 + abb5d5b commit 198ac65Copy full SHA for 198ac65
components/cache/adapters/chain_adapter.rst
@@ -15,16 +15,15 @@ given adapters. This exposes a simple and efficient method for creating a layere
15
The ChainAdapter must be provided an array of adapters and optionally a maximum cache
16
lifetime as its constructor arguments::
17
18
- use Symfony\Component\Cache\Adapter\ApcuAdapter;
19
-
20
- $cache = new ChainAdapter([
+ use Symfony\Component\Cache\Adapter\ChainAdapter;
21
+ $cache = new ChainAdapter(
22
// The ordered list of adapters used to fetch cached items
23
array $adapters,
24
25
// The max lifetime of items propagated from lower adapters to upper ones
26
$maxLifetime = 0
27
- ]);
+ );
28
29
.. note::
30
0 commit comments