src/Leevel/Cache/Load.php
public function dataLoaded($names, array $option = [], bool $force = false)
    {
        $result = [];

        $names = is_array($names) ? $names : [
            $names,
        ];

        foreach ($names as $name) {
            $result[$name] = array_key_exists($name, $this->cacheLoaded) ?
                $this->cacheLoaded[$name] :
                false;
        }

        return count($result) > 1 ? $result : reset($result);
    }
public function dataLoaded($names, array $option = [], bool $force = false)
    {
        $result = [];

        $names = is_array($names) ? $names : [
            $names,
        ];

        foreach ($names as $name) {
            $result[$name] = array_key_exists($name, $this->cacheLoaded) ?
                $this->cacheLoaded[$name] :
                false;
        }

        return count($result) > 1 ? $result : reset($result);
    }
从载入缓存数据中获取
不存在不用更新缓存，返回 false.

@param array|string $names
@param mixed        $force

@return mixed