You are here

private function CachedReader::saveToCache in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_annotation_discovery/lib/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 modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php
Gets the annotations applied to a class.
CachedReader::getMethodAnnotations in modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php
Gets the annotations applied to a method.
CachedReader::getPropertyAnnotations in modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php
Gets the annotations applied to a property.

File

modules/providers/service_container_annotation_discovery/lib/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());
  }
}