@@ -311,7 +311,7 @@ Custom Provider Options
311
311
312
312
Some providers have specific options that could be configured. The
313
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
314
+ providers with option `` timeout ``, ``retry_interval `` 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
@@ -333,7 +333,7 @@ the pool.
333
333
factory : ['Symfony\Component\Cache\Adapter\RedisAdapter', 'createConnection']
334
334
arguments :
335
335
- ' redis://localhost'
336
- - [ lazy : true , timeout: 10 ]
336
+ - [ retry_interval : 2 , timeout: 10 ]
337
337
338
338
.. code-block :: xml
339
339
@@ -355,7 +355,7 @@ the pool.
355
355
<service id =" app.my_custom_redis_provider" class =" \Redis" >
356
356
<argument >redis://localhost</argument >
357
357
<argument type =" collection" >
358
- <argument name =" lazy " >true </argument >
358
+ <argument name =" retry_interval " >2 </argument >
359
359
<argument name =" timeout" >10</argument >
360
360
</argument >
361
361
</service >
@@ -379,7 +379,7 @@ the pool.
379
379
$container->getDefinition('app.my_custom_redis_provider', \Redis::class)
380
380
->addArgument('redis://localhost')
381
381
->addArgument([
382
- 'lazy ' => true ,
382
+ 'retry_interval ' => 2 ,
383
383
'timeout' => 10
384
384
]);
385
385
0 commit comments