Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d7f6b1

Browse files
committed
Fixes
1 parent c4a6fe8 commit 1d7f6b1

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

cache.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ case the value needs to be recalculated.
378378

379379
.. versionadded:: 4.4
380380

381-
Support for configure a chain using ``framework.cache.pools`` was introduced in Symfony 4.4.
381+
Support for configuring a chain using ``framework.cache.pools`` was introduced in Symfony 4.4.
382382

383383
.. configuration-block::
384384

@@ -410,7 +410,7 @@ case the value needs to be recalculated.
410410
<framework:pool name="my_cache_pool" default-lifetime="31536000">
411411
<framework:adapter name="cache.adapter.array" />
412412
<framework:adapter name="cache.adapter.apcu" />
413-
<framework:adapter name="cache.adapter.redis" provider="app.cache.provider.redis" />
413+
<framework:adapter name="cache.adapter.redis" provider="redis://user:[email protected]" />
414414
</framework:pool>
415415
</framework:cache>
416416
</framework:config>
@@ -427,21 +427,13 @@ case the value needs to be recalculated.
427427
'adapters' => [
428428
'cache.adapter.array',
429429
'cache.adapter.apcu',
430-
'redis://user:[email protected]' => 'cache.adapter.redis',
430+
['name' => 'cache.adapter.redis', 'provider' => 'redis://user:[email protected]'],
431431
],
432432
],
433433
],
434434
],
435435
]);
436436
437-
.. note::
438-
439-
In this configuration the ``my_cache_pool`` pool is using the ``cache.adapter.psr6``
440-
adapter and the ``app.my_cache_chain_adapter`` service as a provider. That is
441-
because ``ChainAdapter`` does not support the ``cache.pool`` tag. So it is decorated
442-
with the ``ProxyAdapter``.
443-
444-
445437
Using Cache Tags
446438
----------------
447439

0 commit comments

Comments
 (0)