コード例 #1
0
ファイル: Cache.php プロジェクト: xiaoguizhidao/ecommerce
 public function getQty($lifeMode = false)
 {
     $cacheKey = array(__METHOD__, func_get_args());
     if ($this->isCacheEnabled && !is_null($cacheResult = $this->getCache()->getData($cacheKey))) {
         return $cacheResult;
     }
     return $this->getCache()->setData($cacheKey, parent::getQty($lifeMode));
 }
コード例 #2
0
ファイル: Cache.php プロジェクト: technomagegithub/magento
 public function getQty()
 {
     $cacheKey = array(__METHOD__);
     if ($this->isCacheEnabled && !is_null($cacheResult = $this->getCache()->getData($cacheKey))) {
         return $cacheResult;
     }
     return $this->getCache()->setData($cacheKey, parent::getQty());
 }