diff --git a/Cache/Redis.php b/Cache/Redis.php index e7b6c2b..d584779 100644 --- a/Cache/Redis.php +++ b/Cache/Redis.php @@ -12,11 +12,13 @@ class Redis extends \Redis public function addWatchedServer( $host, $port = 6379, - $timeout = 5 + $connectTimeout = 5, + $retryTimeout = 100, + $readTimeout = 5 ) { $this->serverName = $host . ($port == 6379 ? '' : ':' . $port); - $this->pconnect($host, $port, $timeout); + $this->pconnect($host, $port, $connectTimeout, null, $retryTimeout, $readTimeout); } public function setStopwatch(Stopwatch $stopwatch)