Lines Matching defs:cache
3 * A dummy array cache
20 private $cache = [];
23 * Get cache for $name if exist.
27 * @return mixed data on hit, boolean false on cache not found
31 if (array_key_exists($name, $this->cache)) {
32 return $this->cache[$name];
38 * Set a cache
40 * @param string $name cache id
47 $this->cache[$name] = $value;
51 * Remove cache
59 unset($this->cache[$name]);