ensure redis returns bool for hasKey
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
6259ba779e
commit
9d4a52e07c
|
@ -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 New Issue