コード例 #1
0
ファイル: Base.php プロジェクト: realejo/library-zf2
 /**
  * Retorna o frontend para gravar o cache
  *
  * @return \Zend\Cache\Storage\Adapter\Filesystem
  */
 public function getCache()
 {
     if (!isset($this->_cache)) {
         $this->_cache = new \Realejo\App\Model\Cache();
     }
     return $this->_cache->getFrontend(get_class($this));
 }
コード例 #2
0
ファイル: AbstractDbMapper.php プロジェクト: realejo/zf2-base
 /**
  * Retorna o frontend para gravar o cache
  *
  * @return \Zend\Cache\Storage\Adapter\Filesystem
  */
 public function getCache()
 {
     if (!isset($this->_cache)) {
         $this->_cache = new Cache();
     }
     return $this->_cache->getFrontend(get_class($this));
 }