Doctrine\Common\Annotations\CachedReader::fetchFromCache PHP Method

fetchFromCache() private method

Fetches a value from the cache.
private fetchFromCache ( string $cacheKey, ReflectionClass $class ) : mixed
$cacheKey string The cache key.
$class ReflectionClass The related class.
return mixed The cached value or false when the value is not in cache.
    private function fetchFromCache($cacheKey, ReflectionClass $class)
    {
        if (($data = $this->cache->fetch($cacheKey)) !== false) {
            if (!$this->debug || $this->isCacheFresh($cacheKey, $class)) {
                return $data;
            }
        }
        return false;
    }