PHP 클래스 Smile\ElasticsuiteCore\Helper\Cache

저자: Aurelien FOUCRET ([email protected])
상속: extends Magento\Framework\App\Helper\AbstractHelper
파일 보기 프로젝트 열기: smile-sa/elasticsuite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Magento\Framework\App\Helper\Context $context, Magento\Framework\App\CacheInterface $cache, IndexSettings $indexSettingsHelper ) 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.

비공개 메소드들

메소드 설명
getCacheTags ( string $indexIdentifier, string $storeId ) : string[] Get cache tag by index identifier / store.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Magento\Framework\App\Helper\Context $context, Magento\Framework\App\CacheInterface $cache, IndexSettings $indexSettingsHelper )
$context Magento\Framework\App\Helper\Context Helper context.
$cache Magento\Framework\App\CacheInterface Cache manager.
$indexSettingsHelper IndexSettings Index settings helper.

cleanIndexCache() 공개 메소드

Clean the cache by index identifier and store.
public cleanIndexCache ( string $indexIdentifier, string $storeId ) : void
$indexIdentifier string Index identifier.
$storeId string Store id.
리턴 void

loadCache() 공개 메소드

Load data from the cache
public loadCache ( string $cacheKey ) : mixed
$cacheKey string Cache key.
리턴 mixed

saveCache() 공개 메소드

Save some data into an index cache.
public saveCache ( string $cacheKey, mixed $data, string[] $cacheTags, integer $lifetime = self::DEFAULT_LIFETIME )
$cacheKey string Cache key.
$data mixed Data.
$cacheTags string[] Cache tags.
$lifetime integer Cache lifetime.