类 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 -
字段概要
字段从类继承的字段 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.RedisCachecreateRedisCache(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
-
字段详细资料
-
SPLIT_FLAG
- 另请参阅:
-
CACHE_LENGTH
private static final int CACHE_LENGTH- 另请参阅:
-
-
构造器详细资料
-
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
从上下文中获取租户ID,重写@Cacheable value 值- 指定者:
getCache在接口中org.springframework.cache.CacheManager- 覆盖:
getCache在类中org.springframework.cache.support.AbstractCacheManager- 参数:
name-- 返回:
-