8000 Use "retry_interval" · symfony/symfony-docs@c7f8c01 · GitHub
[go: up one dir, main page]

Skip to content

Commit c7f8c01

Browse files
committed
Use "retry_interval"
1 parent 605763c commit c7f8c01

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
@@ -322,7 +322,7 @@ Custom Provider Options
322322

323323
Some providers have specific options that could be configured. The
324324
: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
326326
values you need to create your own ``\Redis`` provider and use that when configuring
327327
the pool.
328328

@@ -344,7 +344,7 @@ the pool.
344344
factory: ['Symfony\Component\Cache\Adapter\RedisAdapter', 'createConnection']
345345
arguments:
346346
- 'redis://localhost'
347-
- [ lazy: true, timeout: 10 ]
347+
- [ retry_interval: 2, timeout: 10 ]
348348
349349
.. code-block:: xml
350350
@@ -366,7 +366,7 @@ the pool.
366366
<service id="app.my_custom_redis_provider" class="\Redis">
367367
<argument>redis://localhost</argument>
368368
<argument type="collection">
369-
<argument name="lazy">true</argument>
369+
<argument name="retry_interval">2</argument>
370370
<argument name="timeout">10</argument>
371371
</argument>
372372
</service>
@@ -390,7 +390,7 @@ the pool.
390390
$container->getDefinition('app.my_custom_redis_provider', \Redis::class)
391391
->addArgument('redis://localhost')
392392
->addArgument([
393-
'lazy' => true,
393+
'retry_interval' => 2,
394394
'timeout' => 10
395395
]);
396396

0 commit comments

Comments
 (0)
0