Browse Source
no ternary
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/4061/head
Jörn Friedrich Dreyer
10 years ago
committed by
Morris Jobke
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with
10 additions and
2 deletions
-
lib/private/RedisFactory.php
|
|
|
@ -44,8 +44,16 @@ class RedisFactory { |
|
|
|
throw new \Exception('Redis Cluster support is not available'); |
|
|
|
} |
|
|
|
// cluster config
|
|
|
|
$timeout = isset($config['timeout']) ? $config['timeout'] : null; |
|
|
|
$readTimeout = isset($config['read_timeout']) ? $config['read_timeout'] : null; |
|
|
|
if (isset($config['timeout'])) { |
|
|
|
$timeout = $config['timeout']; |
|
|
|
} else { |
|
|
|
$timeout = null; |
|
|
|
} |
|
|
|
if (isset($config['read_timeout'])) { |
|
|
|
$readTimeout = $config['read_timeout']; |
|
|
|
} else { |
|
|
|
$readTimeout = null; |
|
|
|
} |
|
|
|
$this->instance = new \RedisCluster(null, $config['seeds'], $timeout, $readTimeout); |
|
|
|
|
|
|
|
if (isset($config['failover_mode'])) { |
|
|
|
|