public function getCache() { if (!$this->cache) { $this->cache = CacheFactory::get($this->config->getCacheType(), $this->config->getCacheOptions()); } return $this->cache; }