think\cache\driver\Redis::has PHP Method

has() public method

判断缓存
public has ( string $name ) : boolean
$name string 缓存变量名
return boolean
    public function has($name)
    {
        return $this->handler->get($this->getCacheKey($name)) ? true : false;
    }