Commit ec9a9c91 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer Committed by Thomas Müller

no ternary

parent be085e91
......@@ -45,8 +45,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'])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment