Uses of Class
org.springframework.data.redis.cache.RedisCacheConfiguration
-
Uses of RedisCacheConfiguration in org.springframework.data.redis.cache
Modifier and TypeMethodDescriptionRedisCacheManager.RedisCacheManagerBuilder.cacheDefaults()
Returns the defaultRedisCacheConfiguration
.RedisCacheConfiguration.computePrefixWith
(CacheKeyPrefix cacheKeyPrefix) Use the givenCacheKeyPrefix
to compute the prefix for the actual Redis key given the cache name as function input.static RedisCacheConfiguration
RedisCacheConfiguration.defaultCacheConfig()
DefaultRedisCacheConfiguration
using the following: key expiration eternal cache null values yes prefix cache keys yes default prefix [the actual cache name] key serializerStringRedisSerializer
value serializerJdkSerializationRedisSerializer
conversion serviceDefaultFormattingConversionService
withdefault
cache key convertersstatic RedisCacheConfiguration
RedisCacheConfiguration.defaultCacheConfig
(ClassLoader classLoader) Create defaultRedisCacheConfiguration
givenClassLoader
using the following: key expiration eternal cache null values yes prefix cache keys yes default prefix [the actual cache name] key serializerStringRedisSerializer
value serializerJdkSerializationRedisSerializer
conversion serviceDefaultFormattingConversionService
withdefault
cache key convertersRedisCacheConfiguration.disableCachingNullValues()
Disable caching null values.RedisCacheConfiguration.disableKeyPrefix()
Disable using cache key prefixes.Set the ttl to apply for cache entries.RedisCache.getCacheConfiguration()
GetRedisCacheConfiguration
used.protected RedisCacheConfiguration
RedisCacheManager.getDefaultCacheConfiguration()
Gets the defaultRedisCacheConfiguration
applied to newRedisCache
instances on creation when custom, non-specificRedisCacheConfiguration
was not provided.RedisCacheConfiguration.prefixCacheNameWith
(String prefix) Prefix thecache name
with the given value.RedisCacheConfiguration.serializeKeysWith
(RedisSerializationContext.SerializationPair<String> keySerializationPair) Define theRedisSerializationContext.SerializationPair
used for de-/serializing cache keys.RedisCacheConfiguration.serializeValuesWith
(RedisSerializationContext.SerializationPair<?> valueSerializationPair) Define theRedisSerializationContext.SerializationPair
used for de-/serializing cache values.RedisCacheConfiguration.withConversionService
(ConversionService conversionService) Define theConversionService
used for cache key toString
conversion.Modifier and TypeMethodDescriptionRedisCacheManager.RedisCacheManagerBuilder.getCacheConfigurationFor
(String cacheName) Get theRedisCacheConfiguration
for a given cache by its name.RedisCacheManager.getCacheConfigurations()
protected Map<String,
RedisCacheConfiguration> RedisCacheManager.getInitialCacheConfiguration()
Gets aMap
ofcache names
toRedisCacheConfiguration
objects as the initial set ofRedis caches
to create on startup.Modifier and TypeMethodDescriptionRedisCacheManager.RedisCacheManagerBuilder.cacheDefaults
(RedisCacheConfiguration defaultCacheConfiguration) Define a defaultRedisCacheConfiguration
applied to dynamically createdRedisCache
s.protected RedisCache
RedisCacheManager.createRedisCache
(String name, RedisCacheConfiguration cacheConfiguration) RedisCacheManager.RedisCacheManagerBuilder.withCacheConfiguration
(String cacheName, RedisCacheConfiguration cacheConfiguration) Registers the givencache name
andRedisCacheConfiguration
used to create and configure aRedisCache
on startup.Modifier and TypeMethodDescriptionRedisCacheManager.RedisCacheManagerBuilder.withInitialCacheConfigurations
(Map<String, RedisCacheConfiguration> cacheConfigurations) Append aMap
of cache name/RedisCacheConfiguration
pairs to be pre initialized.ModifierConstructorDescriptionprotected
RedisCache
(String name, RedisCacheWriter cacheWriter, RedisCacheConfiguration cacheConfiguration) Create a newRedisCache
.RedisCacheManager
(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration) Creates a newRedisCacheManager
initialized with the givenRedisCacheWriter
and a defaultRedisCacheConfiguration
.RedisCacheManager
(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, boolean allowRuntimeCacheCreation, String... initialCacheNames) Creates a newRedisCacheManager
initialized with the givenRedisCacheWriter
and defaultRedisCacheConfiguration
, and whether to allow cache creation at runtime.RedisCacheManager
(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, boolean allowRuntimeCacheCreation, Map<String, RedisCacheConfiguration> initialCacheConfigurations) Creates a newRedisCacheManager
initialized with the givenRedisCacheWriter
and a defaultRedisCacheConfiguration
, and whether to allowRedisCache
creation at runtime.RedisCacheManager
(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, String... initialCacheNames) Creates a newRedisCacheManager
initialized with the givenRedisCacheWriter
and a defaultRedisCacheConfiguration
, along with an optional, initial set ofcache names
used to createRedis caches
on startup.RedisCacheManager
(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, Map<String, RedisCacheConfiguration> initialCacheConfigurations) RedisCacheManager
(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, Map<String, RedisCacheConfiguration> initialCacheConfigurations, boolean allowRuntimeCacheCreation) Deprecated.ModifierConstructorDescriptionRedisCacheManager
(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, boolean allowRuntimeCacheCreation, Map<String, RedisCacheConfiguration> initialCacheConfigurations) Creates a newRedisCacheManager
initialized with the givenRedisCacheWriter
and a defaultRedisCacheConfiguration
, and whether to allowRedisCache
creation at runtime.RedisCacheManager
(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, Map<String, RedisCacheConfiguration> initialCacheConfigurations) RedisCacheManager
(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, Map<String, RedisCacheConfiguration> initialCacheConfigurations, boolean allowRuntimeCacheCreation) Deprecated.
RedisCacheManager(RedisCacheWriter, RedisCacheConfiguration, boolean, Map)
instead.