We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df69e89 commit 0d5cff5Copy full SHA for 0d5cff5
lib/Resque/Redis.php
@@ -122,8 +122,10 @@ public function __construct($server, $database = null)
122
// Look for known Credis_Client options
123
$timeout = isset($options['timeout']) ? intval($options['timeout']) : null;
124
$persistent = isset($options['persistent']) ? $options['persistent'] : '';
125
+ $maxRetries = isset($options['max_connect_retries']) ? $options['max_connect_retries'] : 0;
126
127
$this->driver = new Credis_Client($host, $port, $timeout, $persistent);
128
+ $this->driver->setMaxConnectRetries($maxRetries);
129
if ($password){
130
$this->driver->auth($password);
131
}
0 commit comments