@@ -322,7 +322,7 @@ Custom Provider Options
322
322
323
323
Some providers have specific options that could be configured. The
324
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
325
+ providers with option `` timeout ``, ``retry_interval `` 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
@@ -344,7 +344,7 @@ the pool.
344
344
factory : ['Symfony\Component\Cache\Adapter\RedisAdapter', 'createConnection']
345
345
arguments :
346
346
- ' redis://localhost'
347
- - [ lazy : true , timeout: 10 ]
347
+ - [ retry_interval : 2 , timeout: 10 ]
348
348
349
349
.. code-block :: xml
350
350
@@ -366,7 +366,7 @@ the pool.
366
366
<service id =" app.my_custom_redis_provider" class =" \Redis" >
367
367
<argument >redis://localhost</argument >
368
368
<argument type =" collection" >
369
- <argument name =" lazy " >true </argument >
369
+ <argument name =" retry_interval " >2 </argument >
370
370
<argument name =" timeout" >10</argument >
371
371
</argument >
372
372
</service >
@@ -390,7 +390,7 @@ the pool.
390
390
$container->getDefinition('app.my_custom_redis_provider', \Redis::class)
391
391
->addArgument('redis://localhost')
392
392
->addArgument([
393
- 'lazy ' => true ,
393
+ 'retry_interval ' => 2 ,
394
394
'timeout' => 10
395
395
]);
396
396
0 commit comments