src/Leevel/Cache/Load.php
protected function cache(string $name, array $option = [], bool $force = false)
    {
        if (false === $force) {
            $data = $this->getPersistence($name, false, $option);
        } else {
            $data = false;
        }

        if (false === $data) {
            $data = $this->update($name, $option);
        }

        return $data;
    }
protected function cache(string $name, array $option = [], bool $force = false)
    {
        if (false === $force) {
            $data = $this->getPersistence($name, false, $option);
        } else {
            $data = false;
        }

        if (false === $data) {
            $data = $this->update($name, $option);
        }

        return $data;
    }
读取缓存数据.

@param string $name
@param array  $option
@param bool   $force

@return mixed