Merge pull request #8998 from MrPetovan/bug/warnings

Fix unexpected return value of RedisCache->delete()
This commit is contained in:
Michael Vogel 2020-08-10 08:58:30 +02:00 committed by GitHub
commit 7841b0549a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -139,7 +139,9 @@ class RedisCache extends BaseCache implements IMemoryCache
public function delete($key)
{
$cachekey = $this->getCacheKey($key);
return ($this->redis->del($cachekey) > 0);
$this->redis->del($cachekey);
// Redis doesn't have an error state for del()
return true;
}
/**