mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Use strict comparison to detect usage of redis cluster
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
d9d54ce782
commit
5dbb080517
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ class RedisFactory {
|
|||
}
|
||||
|
||||
private function create() {
|
||||
$isCluster = in_array('redis.cluster', $this->config->getKeys());
|
||||
$isCluster = in_array('redis.cluster', $this->config->getKeys(), true);
|
||||
$config = $isCluster
|
||||
? $this->config->getValue('redis.cluster', [])
|
||||
: $this->config->getValue('redis', []);
|
||||
|
|
|
|||
Loading…
Reference in a new issue