45 $cacheTag = self::ACL_DATA_CACHE_TAG
48 $this->aclBuilder = $aclBuilder;
49 $this->cacheTag = $cacheTag;
55 public function test($identifier)
57 return $this->cache->test($identifier);
63 public function load($identifier)
65 return $this->cache->load($identifier);
71 public function save(
$data, $identifier, array $tags = [], $lifeTime =
null)
73 return $this->cache->save(
$data, $identifier, array_merge($tags, [$this->cacheTag]), $lifeTime);
79 public function remove($identifier)
81 return $this->cache->remove($identifier);
89 $this->aclBuilder->resetRuntimeAcl();
90 return $this->cache->clean(
$mode, array_merge($tags, [$this->cacheTag]));
98 return $this->cache->getBackend();
106 return $this->cache->getLowLevelFrontend();
save($data, $identifier, array $tags=[], $lifeTime=null)
__construct(\Magento\Framework\Config\CacheInterface $cache, \Magento\Framework\Acl\Builder $aclBuilder, $cacheTag=self::ACL_DATA_CACHE_TAG)
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
const CLEANING_MODE_MATCHING_TAG
clean($mode=\Zend_Cache::CLEANING_MODE_MATCHING_TAG, array $tags=[])