Skip to content

Commit d283842

Browse files
bug #20991 [cache] Bump RedisAdapter default timeout to 5s (Nicofuma)
This PR was merged into the 3.1 branch. Discussion ---------- [cache] Bump RedisAdapter default timeout to 5s | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Bump RedisAdapter timeout to 5s because (at least with Predis) 0 means 0s Commits ------- eaca2a4 [cache] Bump RedisAdapter timeout to 5s
2 parents 4c453f6 + eaca2a4 commit d283842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Cache/Adapter/RedisAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class RedisAdapter extends AbstractAdapter
2525
private static $defaultConnectionOptions = array(
2626
'class' => null,
2727
'persistent' => 0,
28-
'timeout' => 0,
29-
'read_timeout' => 0,
28+
'timeout' => 30,
29+
'read_timeout' => 30,
3030
'retry_interval' => 0,
3131
);
3232
private $redis;

0 commit comments

Comments
 (0)