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.RedisCacheConfiguration.enableTimeToIdle()Enables time-to-idle (TTI) expiration onCacheread operations, such asCache.get(Object).Set the ttl to apply for cache entries.RedisCacheConfiguration.entryTtl(RedisCacheWriter.TtlFunction ttlFunction) Set theTTL functionto compute the time to live for cache entries.RedisCache.getCacheConfiguration()Get theRedisCacheConfigurationused to configure thisRedisCacheon initialization.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(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 newRedisCachewith the givennameandRedisCacheConfiguration, using theRedisCacheWriterto execute Redis commands supporting the cache operations.RedisCacheManager(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration) Creates a newRedisCacheManagerinitialized with the givenRedisCacheWriterand defaultRedisCacheConfiguration.RedisCacheManager(RedisCacheWriter cacheWriter, RedisCacheConfiguration defaultCacheConfiguration, boolean allowRuntimeCacheCreation, String... initialCacheNames) Creates a newRedisCacheManagerinitialized with the givenRedisCacheWriterand defaultRedisCacheConfigurationalong with 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 defaultRedisCacheConfigurationalong 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.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 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.since 3.2.