Lines Matching full:cache
22 use Doctrine\Common\Cache\Cache; alias
26 * A cache aware annotation reader.
39 * @var Cache
41 private $cache; variable in Doctrine\\Common\\Annotations\\CachedReader
57 * @param Cache $cache
60 public function __construct(Reader $reader, Cache $cache, $debug = false) argument
63 $this->cache = $cache;
179 * Fetches a value from the cache.
181 * @param string $cacheKey The cache key.
184 * @return mixed The cached value or false when the value is not in cache.
188 if (($data = $this->cache->fetch($cacheKey)) !== false) {
198 * Saves a value to the cache.
200 * @param string $cacheKey The cache key.
207 $this->cache->save($cacheKey, $value);
209 $this->cache->save('[C]'.$cacheKey, time());
214 * Checks if the cache is fresh.
227 return $this->cache->fetch('[C]'.$cacheKey) >= $lastModification;