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

Commitc7f8c01

Browse files
committed
Use "retry_interval"
1 parent605763c commitc7f8c01

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
<serviceid="app.my_custom_redis_provider"class="\Redis">
367367
<argument>redis://localhost</argument>
368368
<argumenttype="collection">
369-
<argumentname="lazy">true</argument>
369+
<argumentname="retry_interval">2</argument>
370370
<argumentname="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)

[8]ページ先頭

©2009-2025 Movatter.jp