Merge pull request #26644 from nextcloud/backport/26639/stable19

[stable19] ensure redis returns bool for hasKey
This commit is contained in:
Roeland Jago Douma 2021-04-20 16:22:00 +02:00 committed by GitHub
commit 489ddb4d04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {