Skip to content

Commit

Permalink
[cache] Bump RedisAdapter timeout to 5s
Browse files Browse the repository at this point in the history
Bump RedisAdapter timeout to 5s because (at least with Predis) 0 means 0s
  • Loading branch information
Nicofuma authored and nicolas-grekas committed Dec 27, 2016
1 parent 6ba0414 commit eaca2a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Cache/Adapter/RedisAdapter.php
Expand Up @@ -25,8 +25,8 @@ class RedisAdapter extends AbstractAdapter
private static $defaultConnectionOptions = array(
'class' => null,
'persistent' => 0,
'timeout' => 0,
'read_timeout' => 0,
'timeout' => 30,
'read_timeout' => 30,
'retry_interval' => 0,
);
private $redis;
Expand Down

0 comments on commit eaca2a4

Please sign in to comment.