类 RedisAutoCacheManager

java.lang.Object
org.springframework.cache.support.AbstractCacheManager
org.springframework.cache.transaction.AbstractTransactionSupportingCacheManager
org.springframework.data.redis.cache.RedisCacheManager
com.sie.mbm.mom.framework.cache.RedisAutoCacheManager
所有已实现的接口:
org.springframework.beans.factory.InitializingBean, org.springframework.cache.CacheManager

public class RedisAutoCacheManager extends org.springframework.data.redis.cache.RedisCacheManager
redis cache 扩展cache name自动化配置

cachename = xx#ttl

  • 嵌套类概要

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

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

    字段
    修饰符和类型
    字段
    说明
    private static final int
     
    private static final String
     

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

    DEFAULT_ALLOW_RUNTIME_CACHE_CREATION
  • 构造器概要

    构造器
    构造器
    说明
    RedisAutoCacheManager(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)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected org.springframework.data.redis.cache.RedisCache
    createRedisCache(String name, org.springframework.data.redis.cache.RedisCacheConfiguration cacheConfig)
     
    org.springframework.cache.Cache
    从上下文中获取租户ID,重写@Cacheable value 值

    从类继承的方法 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, getCacheNames, initializeCaches, lookupCache

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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

  • 构造器详细资料

    • RedisAutoCacheManager

      public RedisAutoCacheManager(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, @Nullable org.springframework.data.redis.cache.RedisCacheConfiguration cacheConfig)
      覆盖:
      createRedisCache 在类中 org.springframework.data.redis.cache.RedisCacheManager
    • getCache

      public org.springframework.cache.Cache getCache(String name)
      从上下文中获取租户ID,重写@Cacheable value 值
      指定者:
      getCache 在接口中 org.springframework.cache.CacheManager
      覆盖:
      getCache 在类中 org.springframework.cache.support.AbstractCacheManager
      参数:
      name -
      返回: