mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:43:40 +00:00
Fix unexpected return value of RedisCache->delete()
- Address https://github.com/friendica/friendica/issues/8876#issuecomment-671025374
This commit is contained in:
parent
b219677de5
commit
7019e02f61
1 changed files with 3 additions and 1 deletions
|
@ -139,7 +139,9 @@ class RedisCache extends BaseCache implements IMemoryCache
|
||||||
public function delete($key)
|
public function delete($key)
|
||||||
{
|
{
|
||||||
$cachekey = $this->getCacheKey($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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue