mirror of
https://github.com/nextcloud/server.git
synced 2026-07-16 13:23:11 -04:00
Merge pull request #26639 from nextcloud/backport/26551/stable21
[stable21] ensure redis returns bool for hasKey
This commit is contained in:
commit
f915efc859
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ class Redis extends Cache implements IMemcacheTTL {
|
|||
}
|
||||
|
||||
public function hasKey($key) {
|
||||
return self::$cache->exists($this->getNameSpace() . $key);
|
||||
return (bool)self::$cache->exists($this->getNameSpace() . $key);
|
||||
}
|
||||
|
||||
public function remove($key) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue