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 givenCacheKeyPrefixto compute the prefix for the actual Redis key given the cache name as function input.static RedisCacheConfigurationRedisCacheConfiguration.defaultCacheConfig()DefaultRedisCacheConfigurationusing the following: key expiration eternal cache null values yes prefix cache keys yes default prefix [the actual cache name] key serializerStringRedisSerializervalue serializerJdkSerializationRedisSerializerconversion serviceDefaultFormattingConversionServicewithdefaultcache key convertersstatic RedisCacheConfigurationRedisCacheConfiguration.defaultCacheConfig(ClassLoader classLoader) Create defaultRedisCacheConfigurationgivenClassLoaderusing the following: key expiration eternal cache null values yes prefix cache keys yes default prefix [the actual cache name] key serializerStringRedisSerializervalue serializerJdkSerializationRedisSerializerconversion serviceDefaultFormattingConversionServicewithdefaultcache key convertersRedisCacheConfiguration.disableCachingNullValues()Disable caching null values.RedisCacheConfiguration.disableKeyPrefix()Disable using cache key prefixes.Set the ttl to apply for cache entries.RedisCache.getCacheConfiguration()GetRedisCacheConfigurationused.protected RedisCacheConfigurationRedisCacheManager.getDefaultCacheConfiguration()Gets the defaultRedisCacheConfigurationapplied to newRedisCacheinstances on creation when custom, non-specificRedisCacheConfigurationwas not provided.RedisCacheConfiguration.prefixCacheNameWith(String prefix) Prefix thecache namewith the given value.RedisCacheConfiguration.serializeKeysWith(RedisSerializationContext.SerializationPair<String> keySerializationPair) Define theRedisSerializationContext.SerializationPairused for de-/serializing cache keys.RedisCacheConfiguration.serializeValuesWith(RedisSerializationContext.SerializationPair<?> valueSerializationPair) Define theRedisSerializationContext.SerializationPairused for de-/serializing cache values.RedisCacheConfiguration.withConversionService(org.springframework.core.convert.ConversionService conversionService) Define theConversionServiceused for cache key toStringconversion.Methods in org.springframework.data.redis.cache that return types with arguments of type RedisCacheConfigurationModifier and TypeMethodDescriptionRedisCacheManager.RedisCacheManagerBuilder.getCacheConfigurationFor(String cacheName) Get theRedisCacheConfigurationfor a given cache by its name.RedisCacheManager.getCacheConfigurations()protected Map<String,RedisCacheConfiguration> RedisCacheManager.getInitialCacheConfiguration()Gets aMapofcache namestoRedisCacheConfigurationobjects as the initial set ofRedis cachesto create on startup.Methods in org.springframework.data.redis.cache with parameters of type RedisCacheConfigurationModifier and TypeMethodDescriptionRedisCacheManager.RedisCacheManagerBuilder.cacheDefaults(RedisCacheConfiguration defaultCacheConfiguration) Define a defaultRedisCacheConfigurationapplied to dynamically createdRedisCaches.protected RedisCacheRedisCacheManager.createRedisCache(String name, RedisCacheConfiguration cacheConfiguration) RedisCacheManager.RedisCacheManagerBuilder.withCacheConfiguration(String cacheName, RedisCacheConfiguration cacheConfiguration) Registers the givencache nameandRedisCacheConfigurationused to create and configure aRedisCacheon startup.Method parameters in org.springframework.data.redis.cache with type arguments of type RedisCacheConfigurationModifier and TypeMethodDescriptionRedisCacheManager.RedisCacheManagerBuilder.withInitialCacheConfigurations(Map<String, RedisCacheConfiguration> cacheConfigurations) Append aMapof cache name/RedisCacheConfigurationpairs to be pre initialized.Constructors in org.springframework.data.redis.cache with parameters of type RedisCacheConfigurationModifierConstructorDescriptionprotectedRedisCache(String name, RedisCacheWriter cacheWriter, RedisCacheConfiguration cacheConfiguration) Create a newRedisCache.RedisCacheManager(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration) Creates a newRedisCacheManagerinitialized with the givenRedisCacheWriterand a defaultRedisCacheConfiguration.RedisCacheManager(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, boolean allowRuntimeCacheCreation, String... initialCacheNames) Creates a newRedisCacheManagerinitialized with the givenRedisCacheWriterand defaultRedisCacheConfiguration, and whether to allow cache creation at runtime.RedisCacheManager(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, boolean allowRuntimeCacheCreation, Map<String, RedisCacheConfiguration> initialCacheConfigurations) Creates a newRedisCacheManagerinitialized with the givenRedisCacheWriterand a defaultRedisCacheConfiguration, and whether to allowRedisCachecreation at runtime.RedisCacheManager(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, String... initialCacheNames) Creates a newRedisCacheManagerinitialized with the givenRedisCacheWriterand a defaultRedisCacheConfiguration, along with an optional, initial set ofcache namesused to createRedis cacheson startup.RedisCacheManager(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, Map<String, RedisCacheConfiguration> initialCacheConfigurations) RedisCacheManager(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, Map<String, RedisCacheConfiguration> initialCacheConfigurations, boolean allowRuntimeCacheCreation) Deprecated.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 newRedisCacheManagerinitialized with the givenRedisCacheWriterand a defaultRedisCacheConfiguration, and whether to allowRedisCachecreation 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.