类 RedisCache

java.lang.Object
cn.myafx.cache.base.BaseCache
cn.myafx.cache.base.RedisCache
所有已实现的接口:
IBaseCache, IRedisCache, AutoCloseable
直接已知子类:
GeoCache, HashCache, LinkListCache, SetCache, SortSetCache, StringCache

public class RedisCache extends BaseCache implements IRedisCache
redis 缓存
  • 字段详细资料

    • DefaultJsonMapper

      public static IJsonMapper DefaultJsonMapper
    • mapper

      protected IJsonMapper mapper
    • redis

      protected org.springframework.data.redis.connection.RedisConnection redis
      redis
    • keyConfig

      protected CacheKeyConfig keyConfig
      缓存key配置
    • prefix

      protected String prefix
      缓存前缀
    • nodeName

      protected String nodeName
      NodeName
  • 构造器详细资料

    • RedisCache

      public RedisCache(String node, String item, org.springframework.data.redis.connection.RedisConnection redisConnection, ICacheKey cacheKey, String prefix) throws Exception
      RedisCache
      参数:
      node - 缓存key配置db节点
      item - 缓存key配置项
      redisConnection - RedisConnection
      cacheKey - ICacheKey
      prefix - 缓存前缀
      抛出:
      Exception
  • 方法详细资料