Skip to content

Commit d6ca04c

Browse files
committed
Use "retry_interval"
1 parent ede2c16 commit d6ca04c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cache.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Custom Provider Options
311311

312312
Some providers have specific options that could be configured. The
313313
: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
315315
values you need to create your own ``\Redis`` provider and use that when configuring
316316
the pool.
317317

@@ -333,7 +333,7 @@ the pool.
333333
factory: ['Symfony\Component\Cache\Adapter\RedisAdapter', 'createConnection']
334334
arguments:
335335
- 'redis://localhost'
336-
- [ lazy: true, timeout: 10 ]
336+
- [ retry_interval: 2, timeout: 10 ]
337337
338338
.. code-block:: xml
339339
@@ -355,7 +355,7 @@ the pool.
355355
<service id="app.my_custom_redis_provider" class="\Redis">
356356
<argument>redis://localhost</argument>
357357
<argument type="collection">
358-
<argument name="lazy">true</argument>
358+
<argument name="retry_interval">2</argument>
359359
<argument name="timeout">10</argument>
360360
</argument>
361361
</service>
@@ -379,7 +379,7 @@ the pool.
379379
$container->getDefinition('app.my_custom_redis_provider', \Redis::class)
380380
->addArgument('redis://localhost')
381381
->addArgument([
382-
'lazy' => true,
382+
'retry_interval' => 2,
383383
'timeout' => 10
384384
]);
385385

0 commit comments

Comments
 (0)