Class MemoryCacheGroupHandler

java.lang.Object
net.ideahut.springboot.cache.MemoryCacheGroupHandler
All Implemented Interfaces:
net.ideahut.springboot.cache.CacheGroupHandler, org.springframework.beans.factory.InitializingBean

public class MemoryCacheGroupHandler extends Object implements net.ideahut.springboot.cache.CacheGroupHandler, org.springframework.beans.factory.InitializingBean
  • Constructor Details

    • MemoryCacheGroupHandler

      public MemoryCacheGroupHandler()
  • Method Details

    • setTaskHandler

      public MemoryCacheGroupHandler setTaskHandler(net.ideahut.springboot.task.TaskHandler taskHandler)
    • setDataMapper

      public MemoryCacheGroupHandler setDataMapper(DataMapper dataMapper)
    • setGroups

      public MemoryCacheGroupHandler setGroups(List<net.ideahut.springboot.cache.CacheGroupProperties> groups)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • info

      public net.ideahut.springboot.cache.CacheInfo info()
      Specified by:
      info in interface net.ideahut.springboot.cache.CacheGroupHandler
    • get

      public <T> T get(Class<T> type, String group, String key, Callable<T> callable)
      Specified by:
      get in interface net.ideahut.springboot.cache.CacheGroupHandler
    • get

      public <T> T get(Class<T> type, String group, String key)
      Specified by:
      get in interface net.ideahut.springboot.cache.CacheGroupHandler
    • multiList

      public <T> List<T> multiList(Class<T> type, String group, Collection<String> keys)
      Specified by:
      multiList in interface net.ideahut.springboot.cache.CacheGroupHandler
    • multiMap

      public <T> Map<String,T> multiMap(Class<T> type, String group, Collection<String> keys)
      Specified by:
      multiMap in interface net.ideahut.springboot.cache.CacheGroupHandler
    • put

      public <T> T put(Class<T> type, String group, String key, T value)
      Specified by:
      put in interface net.ideahut.springboot.cache.CacheGroupHandler
    • expire

      public void expire(String group, String key, Integer expiry)
      Specified by:
      expire in interface net.ideahut.springboot.cache.CacheGroupHandler
    • delete

      public void delete(String group, String key)
      Specified by:
      delete in interface net.ideahut.springboot.cache.CacheGroupHandler
    • multiDel

      public void multiDel(String group, Collection<String> keys)
      Specified by:
      multiDel in interface net.ideahut.springboot.cache.CacheGroupHandler
    • size

      public Long size(String group)
      Specified by:
      size in interface net.ideahut.springboot.cache.CacheGroupHandler
    • clear

      public void clear(String group)
      Specified by:
      clear in interface net.ideahut.springboot.cache.CacheGroupHandler
    • keys

      public List<String> keys(String group)
      Specified by:
      keys in interface net.ideahut.springboot.cache.CacheGroupHandler