private function CachedReader::fetchFromCache

Fetches a value from the cache.

Parameters

string $rawCacheKey The cache key.:

\ReflectionClass $class The related class.:

Return value

mixed|boolean The cached value or false when the value is not in cache.

3 calls to CachedReader::fetchFromCache()
CachedReader::getClassAnnotations in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/CachedReader.php
Get annotations for class
CachedReader::getMethodAnnotations in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/CachedReader.php
Get method annotations
CachedReader::getPropertyAnnotations in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/CachedReader.php
Get annotations for property

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/CachedReader.php, line 208

Class

CachedReader
A cache aware annotation reader.

Namespace

Doctrine\Common\Annotations

Code

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;
}