Method | Description | |
---|---|---|
__construct ( Magento\Framework\App\Helper\Context $context, Magento\Framework\App\CacheInterface $cache, |
Constructor. | |
cleanIndexCache ( string $indexIdentifier, string $storeId ) : void | Clean the cache by index identifier and store. | |
loadCache ( string $cacheKey ) : mixed | Load data from the cache | |
saveCache ( string $cacheKey, mixed $data, string[] $cacheTags, integer $lifetime = self::DEFAULT_LIFETIME ) | Save some data into an index cache. |
Method | Description | |
---|---|---|
getCacheTags ( string $indexIdentifier, string $storeId ) : string[] | Get cache tag by index identifier / store. |
public __construct ( Magento\Framework\App\Helper\Context $context, Magento\Framework\App\CacheInterface $cache, |
||
$context | Magento\Framework\App\Helper\Context | Helper context. |
$cache | Magento\Framework\App\CacheInterface | Cache manager. |
$indexSettingsHelper | Index settings helper. |