Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd6ca04c

Browse files
committed
Use "retry_interval"
1 parentede2c16 commitd6ca04c

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
<serviceid="app.my_custom_redis_provider"class="\Redis">
356356
<argument>redis://localhost</argument>
357357
<argumenttype="collection">
358-
<argumentname="lazy">true</argument>
358+
<argumentname="retry_interval">2</argument>
359359
<argumentname="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)

[8]ページ先頭

©2009-2025 Movatter.jp