You are here

private function CachedReader::saveToCache in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php \Doctrine\Common\Annotations\CachedReader::saveToCache()

Saves a value to the cache.

Parameters

string $rawCacheKey The cache key.:

mixed $value The value.:

Return value

void

3 calls to CachedReader::saveToCache()
CachedReader::getClassAnnotations in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php
Gets the annotations applied to a class.
CachedReader::getMethodAnnotations in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php
Gets the annotations applied to a method.
CachedReader::getPropertyAnnotations in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php
Gets the annotations applied to a property.

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php, line 210

Class

CachedReader
A cache aware annotation reader.

Namespace

Doctrine\Common\Annotations

Code

private function saveToCache($rawCacheKey, $value) {
  $cacheKey = $rawCacheKey . self::$CACHE_SALT;
  $this->cache
    ->save($cacheKey, $value);
  if ($this->debug) {
    $this->cache
      ->save('[C]' . $cacheKey, time());
  }
}