/** * Retrieve Zend_Cache_Manager instance * * @return \Zend\Cache\Manager */ public function getCacheManager() { if (null === $this->_manager) { $this->_manager = new \Zend\Cache\Manager(); $options = $this->getOptions(); foreach ($options as $key => $value) { if ($this->_manager->hasCacheTemplate($key)) { $this->_manager->setTemplateOptions($key, $value); } else { $this->_manager->setCacheTemplate($key, $value); } } } return $this->_manager; }