src/Leevel/Cache/File.php
protected function getCachePath(string $name): string
    {
        if (!$this->option['path']) {
            throw new InvalidArgumentException('Cache path is not allowed empty.');
        }

        return $this->option['path'].'/'.$this->getCacheName($name).'.php';
    }
protected function getCachePath(string $name): string
    {
        if (!$this->option['path']) {
            throw new InvalidArgumentException('Cache path is not allowed empty.');
        }

        return $this->option['path'].'/'.$this->getCacheName($name).'.php';
    }
获取缓存路径.

@param string $name

@return string