Package com.skava.helper
Class CacheUtil
java.lang.Object
com.skava.helper.CacheUtil
- All Implemented Interfaces:
Serializable
- Author:
- Infosys Equinox
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<EventActionAttributeEntity>
getEvantActionAttributesFromCacheOrDB
(CacheImpl<List<EventActionAttributeEntity>> cacheImpl, EventActionAttributeRepository eventActionAttributeRepository) This mehod used to load eventactionattributes form cache otherwise db.
-
Constructor Details
-
CacheUtil
public CacheUtil()
-
-
Method Details
-
getEvantActionAttributesFromCacheOrDB
public static List<EventActionAttributeEntity> getEvantActionAttributesFromCacheOrDB(CacheImpl<List<EventActionAttributeEntity>> cacheImpl, EventActionAttributeRepository eventActionAttributeRepository) This mehod used to load eventactionattributes form cache otherwise db. First it check with cache by cachename and cache key if data not found in cache then query with database the result saved to cache.- Parameters:
cacheImpl
-eventActionAttributeRepository
-- Returns:
- list of EventActionAttributeEntity
-