public class RedisAutoCacheManager
extends org.springframework.data.redis.cache.RedisCacheManager
cachename = xx#ttl
| 限定符和类型 | 字段和说明 |
|---|---|
private static int |
CACHE_LENGTH |
private static java.lang.String |
SPLIT_FLAG |
| 构造器和说明 |
|---|
RedisAutoCacheManager(org.springframework.data.redis.cache.RedisCacheWriter cacheWriter,
org.springframework.data.redis.cache.RedisCacheConfiguration defaultCacheConfiguration,
java.util.Map<java.lang.String,org.springframework.data.redis.cache.RedisCacheConfiguration> initialCacheConfigurations,
boolean allowInFlightCacheCreation) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.data.redis.cache.RedisCache |
createRedisCache(java.lang.String name,
org.springframework.data.redis.cache.RedisCacheConfiguration cacheConfig) |
org.springframework.cache.Cache |
getCache(java.lang.String name)
从上下文中获取租户ID,重写@Cacheable value 值
|
builder, builder, builder, create, getCacheConfigurations, getMissingCache, loadCachesdecorateCache, isTransactionAware, setTransactionAwareprivate static final java.lang.String SPLIT_FLAG
private static final int CACHE_LENGTH
RedisAutoCacheManager(org.springframework.data.redis.cache.RedisCacheWriter cacheWriter,
org.springframework.data.redis.cache.RedisCacheConfiguration defaultCacheConfiguration,
java.util.Map<java.lang.String,org.springframework.data.redis.cache.RedisCacheConfiguration> initialCacheConfigurations,
boolean allowInFlightCacheCreation)
protected org.springframework.data.redis.cache.RedisCache createRedisCache(java.lang.String name,
@Nullable
org.springframework.data.redis.cache.RedisCacheConfiguration cacheConfig)
createRedisCache 在类中 org.springframework.data.redis.cache.RedisCacheManagerpublic org.springframework.cache.Cache getCache(java.lang.String name)
getCache 在接口中 org.springframework.cache.CacheManagergetCache 在类中 org.springframework.cache.support.AbstractCacheManagername - Copyright © 2024 pig4cloud. All rights reserved.