Class CacheOperation
java.lang.Object
es.kukenan.smartfi.microservice.contracts.cache.CacheOperation
Operation over cache.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.springframework.cache.CacheManagerCacheManager cacheManager.private Stringcache products established. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiones.kukenan.smartfi.common.api.dtos.ResultsPageDtoGetting Cache key object for result page.private org.springframework.cache.CachegetReferenceCache(String entityId) Getting Cache reference object.voidinsertEntityReferenceCache(String entityId, String reference, String userId, String productId) Insert Cache object.
-
Field Details
-
productsCacheName
cache products established. -
concurrentMapCacheManager
@Autowired private org.springframework.cache.CacheManager concurrentMapCacheManagerCacheManager cacheManager.
-
-
Constructor Details
-
CacheOperation
public CacheOperation()
-
-
Method Details
-
insertEntityReferenceCache
public void insertEntityReferenceCache(String entityId, String reference, String userId, String productId) Insert Cache object.- Parameters:
entityId- key of the registryreference- value of the registryuserId- user identifier.productId- product identifier.
-
getReferenceCache
Getting Cache reference object.- Parameters:
entityId- key of the registry- Returns:
- cacheReference
-
getProductsCache
private org.springframework.cache.Cache getProductsCache() -
getCachedResultsPageDto
Getting Cache key object for result page.- Parameters:
key- key of the method call- Returns:
- reult page
-