Example #1
0
 /**
  * @return Abstract Cache implementation
  */
 public function getCache()
 {
     if (!isset($this->cache)) {
         $class = __NAMESPACE__ . '\\cache\\' . $this->config->getCacheClass();
         $this->cache = new $class($this);
     }
     return $this->cache;
 }