Skip to content

Commit d17d83d

Browse files
authored
[Cache] Make sure the chain cache configuration works
1 parent fc11d93 commit d17d83d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cache.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,12 +393,17 @@ case the value needs to be recalculated.
393393
cache.my_redis:
394394
adapter: cache.adapter.redis
395395
provider: 'redis://user:[email protected]'
396+
cache.apcu:
397+
adapter: cache.adapter.apcu
398+
cache.array:
399+
adapter: cache.adapter.array
400+
396401
397402
services:
398403
app.my_cache_chain_adapter:
399404
class: Symfony\Component\Cache\Adapter\ChainAdapter
400405
arguments:
401-
- ['cache.adapter.array', 'cache.my_redis', 'cache.adapter.file']
406+
- ['@cache.array', '@cache.apcu', '@cache.my_redis']
402407
- 31536000 # One year
403408
404409
.. code-block:: xml

0 commit comments

Comments
 (0)