修正 Redis::has() 方法的返回值为bool

This commit is contained in:
sockball
2019-12-19 14:22:16 +08:00
committed by ThinkPHP
parent d8ac917c43
commit 5b280948fc

View File

@@ -70,7 +70,7 @@ class Redis extends Driver
*/
public function has($name)
{
return $this->handler->exists($this->getCacheKey($name));
return (bool) $this->handler->exists($this->getCacheKey($name));
}
/**