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