コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function save($data, $identifier, array $tags = [], $lifeTime = null)
 {
     if (!$this->_isEnabled()) {
         return true;
     }
     return parent::save($data, $identifier, $tags, $lifeTime);
 }
コード例 #2
0
ファイル: Profiler.php プロジェクト: IlyaGluschenko/test001
 /**
  * Enforce marking with a tag
  *
  * {@inheritdoc}
  */
 public function save($data, $identifier, array $tags = [], $lifeTime = null)
 {
     \Magento\Framework\Profiler::start('cache_save', $this->_getProfilerTags('save'));
     $result = parent::save($data, $identifier, $tags, $lifeTime);
     \Magento\Framework\Profiler::stop('cache_save');
     return $result;
 }
コード例 #3
0
 /**
  * Enforce marking with a tag
  *
  * {@inheritdoc}
  */
 public function save($data, $identifier, array $tags = array(), $lifeTime = null)
 {
     $tags[] = $this->_tag;
     return parent::save($data, $identifier, $tags, $lifeTime);
 }
コード例 #4
0
ファイル: TagScope.php プロジェクト: pradeep-wagento/magento2
 /**
  * Enforce marking with a tag
  *
  * {@inheritdoc}
  */
 public function save($data, $identifier, array $tags = [], $lifeTime = null)
 {
     $tags[] = $this->getTag();
     return parent::save($data, $identifier, $tags, $lifeTime);
 }