Class RedisCacheGroupHandler

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

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

    • RedisCacheGroupHandler

      public RedisCacheGroupHandler()
  • Method Details

    • setPrefix

      public RedisCacheGroupHandler setPrefix(String prefix)
    • setRedisTemplate

      public RedisCacheGroupHandler setRedisTemplate(org.springframework.data.redis.core.RedisTemplate<String,byte[]> redisTemplate)
    • setTaskHandler

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

      public RedisCacheGroupHandler setDataMapper(DataMapper dataMapper)
    • setGroups

      public RedisCacheGroupHandler 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