File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -310,12 +310,11 @@ Custom Provider Options
310
310
-----------------------
311
311
312
312
Some providers have specific options that could be configured. The
313
- :doc: `RedisAdapter </components/cache/adapters/redis_adapter >` allows you do create
314
- providers with option ``lazy `` and ``timeout `` etc. To use these options with non-default
313
+ :doc: `RedisAdapter </components/cache/adapters/redis_adapter >` allows you to create
314
+ providers with option ``lazy ``, ``timeout `` etc. To use these options with non-default
315
315
values you need to create your own ``\Redis `` provider and use that when configuring
316
316
the pool.
317
317
318
-
319
318
.. configuration-block ::
320
319
321
320
.. code-block :: yaml
@@ -378,11 +377,11 @@ the pool.
378
377
]);
379
378
380
379
$container->getDefinition('app.my_custom_redis_provider', \Redis::class)
380
+ ->addArgument('redis://localhost')
381
381
->addArgument([
382
- 'redis://localhost',
383
- [ 'lazy' => true, 'timeout' => 10 ],
384
- ])
385
- ->addArgument(31536000);
382
+ 'lazy' => true,
383
+ 'timeout' => 10
384
+ ]);
386
385
387
386
Creating a Cache Chain
388
387
----------------------
You can’t perform that action at this time.
0 commit comments