private function CachedReader::fetchFromCache in Plug 7
Fetches a value from the cache.
Parameters
string $rawCacheKey The cache key.:
\ReflectionClass $class The related class.:
Return value
mixed The cached value or false when the value is not in cache.
3 calls to CachedReader::fetchFromCache()
- CachedReader::getClassAnnotations in lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ CachedReader.php - Gets the annotations applied to a class.
- CachedReader::getMethodAnnotations in lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ CachedReader.php - Gets the annotations applied to a method.
- CachedReader::getPropertyAnnotations in lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ CachedReader.php - Gets the annotations applied to a property.
File
- lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ CachedReader.php, line 190
Class
- CachedReader
- A cache aware annotation reader.
Namespace
Doctrine\Common\AnnotationsCode
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;
}