Merge pull request #26642 from nextcloud/backport/26639/stable20
[stable20] ensure redis returns bool for hasKey
This commit is contained in:
commit
fc118f1291
|
@ -69,7 +69,7 @@ class Redis extends Cache implements IMemcacheTTL {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasKey($key) {
|
public function hasKey($key) {
|
||||||
return self::$cache->exists($this->getNameSpace() . $key);
|
return (bool)self::$cache->exists($this->getNameSpace() . $key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function remove($key) {
|
public function remove($key) {
|
||||||
|
|
Loading…
Reference in New Issue