Lines Matching refs:cacheKey

72         $cacheKey = $class->getName();
74 if (isset($this->loadedAnnotations[$cacheKey])) {
75 return $this->loadedAnnotations[$cacheKey];
78 if (false === ($annots = $this->fetchFromCache($cacheKey, $class))) {
80 $this->saveToCache($cacheKey, $annots);
83 return $this->loadedAnnotations[$cacheKey] = $annots;
106 $cacheKey = $class->getName().'$'.$property->getName();
108 if (isset($this->loadedAnnotations[$cacheKey])) {
109 return $this->loadedAnnotations[$cacheKey];
112 if (false === ($annots = $this->fetchFromCache($cacheKey, $class))) {
114 $this->saveToCache($cacheKey, $annots);
117 return $this->loadedAnnotations[$cacheKey] = $annots;
140 $cacheKey = $class->getName().'#'.$method->getName();
142 if (isset($this->loadedAnnotations[$cacheKey])) {
143 return $this->loadedAnnotations[$cacheKey];
146 if (false === ($annots = $this->fetchFromCache($cacheKey, $class))) {
148 $this->saveToCache($cacheKey, $annots);
151 return $this->loadedAnnotations[$cacheKey] = $annots;
181 * @param string $cacheKey The cache key.
186 private function fetchFromCache($cacheKey, ReflectionClass $class) argument
188 if (($data = $this->cache->fetch($cacheKey)) !== false) {
189 if (!$this->debug || $this->isCacheFresh($cacheKey, $class)) {
200 * @param string $cacheKey The cache key.
205 private function saveToCache($cacheKey, $value) argument
207 $this->cache->save($cacheKey, $value);
209 $this->cache->save('[C]'.$cacheKey, time());
216 * @param string $cacheKey
221 private function isCacheFresh($cacheKey, ReflectionClass $class) argument
227 return $this->cache->fetch('[C]'.$cacheKey) >= $lastModification;