Uses of Class
org.springframework.data.redis.cache.RedisCacheConfiguration
Packages that use RedisCacheConfiguration
-
Uses of RedisCacheConfiguration in org.springframework.data.redis.cache
Methods in org.springframework.data.redis.cache that return RedisCacheConfigurationModifier 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.RedisCacheConfiguration.enableTimeToIdle()
Enables time-to-idle (TTI) expiration onCache
read operations, such asCache.get(Object)
.Set the ttl to apply for cache entries.RedisCacheConfiguration.entryTtl
(RedisCacheWriter.TtlFunction ttlFunction) Set theTTL function
to compute the time to live for cache entries.RedisCache.getCacheConfiguration()
Get theRedisCacheConfiguration
used to configure thisRedisCache
on initialization.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.Methods in org.springframework.data.redis.cache that return types with arguments of type RedisCacheConfigurationModifier 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.Methods in org.springframework.data.redis.cache with parameters of type RedisCacheConfigurationModifier 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.Method parameters in org.springframework.data.redis.cache with type arguments of type RedisCacheConfigurationModifier and TypeMethodDescriptionRedisCacheManager.RedisCacheManagerBuilder.withInitialCacheConfigurations
(Map<String, RedisCacheConfiguration> cacheConfigurations) Append aMap
of cache name/RedisCacheConfiguration
pairs to be pre initialized.Constructors in org.springframework.data.redis.cache with parameters of type RedisCacheConfigurationModifierConstructorDescriptionprotected
RedisCache
(String name, RedisCacheWriter cacheWriter, RedisCacheConfiguration cacheConfiguration) Create a newRedisCache
with the givenname
andRedisCacheConfiguration
, using theRedisCacheWriter
to execute Redis commands supporting the cache operations.RedisCacheManager
(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration) Creates a newRedisCacheManager
initialized with the givenRedisCacheWriter
and defaultRedisCacheConfiguration
.RedisCacheManager
(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, boolean allowRuntimeCacheCreation, String... initialCacheNames) Creates a newRedisCacheManager
initialized with the givenRedisCacheWriter
and defaultRedisCacheConfiguration
along with 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.since 3.2.Constructor parameters in org.springframework.data.redis.cache with type arguments of type RedisCacheConfigurationModifierConstructorDescriptionRedisCacheManager
(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.since 3.2.