Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eaca2a4

Browse files
Nicofumanicolas-grekas
authored andcommitted
[cache] Bump RedisAdapter timeout to 5s
Bump RedisAdapter timeout to 5s because (at least with Predis) 0 means 0s
1 parent 6ba0414 commit eaca2a4

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)