Merge pull request #29912 from nextcloud/backport/29906/stable22

[stable22] Use strict comparison to detect usage of redis cluster
This commit is contained in:
Carl Schwan 2021-11-26 11:16:33 +01:00 committed by GitHub
commit 0b3d763907
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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', []);