Class CacheUtil

java.lang.Object
com.skava.helper.CacheUtil
All Implemented Interfaces:
Serializable

public class CacheUtil extends Object implements Serializable
Author:
Infosys Equinox
See Also:
  • 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