类 HerodotusRedisCacheManager

java.lang.Object
org.springframework.cache.support.AbstractCacheManager
org.springframework.cache.transaction.AbstractTransactionSupportingCacheManager
org.springframework.data.redis.cache.RedisCacheManager
cn.herodotus.engine.cache.redis.enhance.HerodotusRedisCacheManager
所有已实现的接口:
org.springframework.beans.factory.InitializingBean, org.springframework.cache.CacheManager

public class HerodotusRedisCacheManager extends org.springframework.data.redis.cache.RedisCacheManager

Description: 扩展的RedisCacheManager

用于支持 Redis 缓存可以针对实体进行单独的过期时间设定

作者:
: gengwei.zheng
Date:
: 2021/10/25 20:49
  • 嵌套类概要

    从类继承的嵌套类/接口 org.springframework.data.redis.cache.RedisCacheManager

    org.springframework.data.redis.cache.RedisCacheManager.RedisCacheManagerBuilder
  • 字段概要

    从类继承的字段 org.springframework.data.redis.cache.RedisCacheManager

    DEFAULT_ALLOW_RUNTIME_CACHE_CREATION
  • 构造器概要

    构造器
    构造器
    说明
    HerodotusRedisCacheManager(org.springframework.data.redis.cache.RedisCacheWriter cacheWriter, org.springframework.data.redis.cache.RedisCacheConfiguration defaultCacheConfiguration, boolean allowInFlightCacheCreation, CacheProperties cacheProperties, String... initialCacheNames)
     
    HerodotusRedisCacheManager(org.springframework.data.redis.cache.RedisCacheWriter cacheWriter, org.springframework.data.redis.cache.RedisCacheConfiguration defaultCacheConfiguration, CacheProperties cacheProperties)
     
    HerodotusRedisCacheManager(org.springframework.data.redis.cache.RedisCacheWriter cacheWriter, org.springframework.data.redis.cache.RedisCacheConfiguration defaultCacheConfiguration, CacheProperties cacheProperties, String... initialCacheNames)
     
    HerodotusRedisCacheManager(org.springframework.data.redis.cache.RedisCacheWriter cacheWriter, org.springframework.data.redis.cache.RedisCacheConfiguration defaultCacheConfiguration, Map<String,org.springframework.data.redis.cache.RedisCacheConfiguration> initialCacheConfigurations, boolean allowInFlightCacheCreation)
     
    HerodotusRedisCacheManager(org.springframework.data.redis.cache.RedisCacheWriter cacheWriter, org.springframework.data.redis.cache.RedisCacheConfiguration defaultCacheConfiguration, Map<String,org.springframework.data.redis.cache.RedisCacheConfiguration> initialCacheConfigurations, CacheProperties cacheProperties)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected org.springframework.data.redis.cache.RedisCache
    createRedisCache(String name, org.springframework.data.redis.cache.RedisCacheConfiguration cacheConfig)
     

    从类继承的方法 org.springframework.data.redis.cache.RedisCacheManager

    builder, builder, builder, create, getCacheConfigurations, getCacheWriter, getDefaultCacheConfiguration, getInitialCacheConfiguration, getMissingCache, isAllowRuntimeCacheCreation, loadCaches

    从类继承的方法 org.springframework.cache.transaction.AbstractTransactionSupportingCacheManager

    decorateCache, isTransactionAware, setTransactionAware

    从类继承的方法 org.springframework.cache.support.AbstractCacheManager

    afterPropertiesSet, getCache, getCacheNames, initializeCaches, lookupCache

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • HerodotusRedisCacheManager

      public HerodotusRedisCacheManager(org.springframework.data.redis.cache.RedisCacheWriter cacheWriter, org.springframework.data.redis.cache.RedisCacheConfiguration defaultCacheConfiguration, CacheProperties cacheProperties)
    • HerodotusRedisCacheManager

      public HerodotusRedisCacheManager(org.springframework.data.redis.cache.RedisCacheWriter cacheWriter, org.springframework.data.redis.cache.RedisCacheConfiguration defaultCacheConfiguration, CacheProperties cacheProperties, String... initialCacheNames)
    • HerodotusRedisCacheManager

      public HerodotusRedisCacheManager(org.springframework.data.redis.cache.RedisCacheWriter cacheWriter, org.springframework.data.redis.cache.RedisCacheConfiguration defaultCacheConfiguration, boolean allowInFlightCacheCreation, CacheProperties cacheProperties, String... initialCacheNames)
    • HerodotusRedisCacheManager

      public HerodotusRedisCacheManager(org.springframework.data.redis.cache.RedisCacheWriter cacheWriter, org.springframework.data.redis.cache.RedisCacheConfiguration defaultCacheConfiguration, Map<String,org.springframework.data.redis.cache.RedisCacheConfiguration> initialCacheConfigurations, CacheProperties cacheProperties)
    • HerodotusRedisCacheManager

      public HerodotusRedisCacheManager(org.springframework.data.redis.cache.RedisCacheWriter cacheWriter, org.springframework.data.redis.cache.RedisCacheConfiguration defaultCacheConfiguration, Map<String,org.springframework.data.redis.cache.RedisCacheConfiguration> initialCacheConfigurations, boolean allowInFlightCacheCreation)
  • 方法详细资料

    • createRedisCache

      protected org.springframework.data.redis.cache.RedisCache createRedisCache(String name, org.springframework.data.redis.cache.RedisCacheConfiguration cacheConfig)
      覆盖:
      createRedisCache 在类中 org.springframework.data.redis.cache.RedisCacheManager