You are here

private function CachedReader::saveToCache in Plug 7

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