private function CachedReader::saveToCache

Saves a value to the cache

Parameters

string $rawCacheKey The cache key.:

mixed $value The value.:

3 calls to CachedReader::saveToCache()
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 226

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