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 @@ -321,12 +321,11 @@ Custom Provider Options
321
321
-----------------------
322
322
323
323
Some providers have specific options that could be configured. The
324
- :doc: `RedisAdapter </components/cache/adapters/redis_adapter >` allows you do create
325
- providers with option ``lazy `` and ``timeout `` etc. To use these options with non-default
324
+ :doc: `RedisAdapter </components/cache/adapters/redis_adapter >` allows you to create
325
+ providers with option ``lazy ``, ``timeout `` etc. To use these options with non-default
326
326
values you need to create your own ``\Redis `` provider and use that when configuring
327
327
the pool.
328
328
329
-
330
329
.. configuration-block ::
331
330
332
331
.. code-block :: yaml
@@ -389,11 +388,11 @@ the pool.
389
388
]);
390
389
391
390
$container->getDefinition('app.my_custom_redis_provider', \Redis::class)
391
+ ->addArgument('redis://localhost')
392
392
->addArgument([
393
- 'redis://localhost',
394
- [ 'lazy' => true, 'timeout' => 10 ],
395
- ])
396
- ->addArgument(31536000);
393
+ 'lazy' => true,
394
+ 'timeout' => 10
395
+ ]);
397
396
398
397
Creating a Cache Chain
399
398
----------------------
You can’t perform that action at this time.
0 commit comments