Uses of Interface
org.springframework.data.redis.cache.RedisCacheWriter
Packages that use RedisCacheWriter
-
Uses of RedisCacheWriter in org.springframework.data.redis.cache
Methods in org.springframework.data.redis.cache that return RedisCacheWriterModifier and TypeMethodDescriptionprotected RedisCacheWriterRedisCache.getCacheWriter()Gets the configuredRedisCacheWriterused to adapt Redis for cache operations.protected RedisCacheWriterRedisCacheManager.getCacheWriter()Returns a reference to the configuredRedisCacheWriterused to performRedisCacheoperations, such as reading from and writing to the cache.RedisCache.getNativeCache()static RedisCacheWriterRedisCacheWriter.lockingRedisCacheWriter(RedisConnectionFactory connectionFactory) Create newRedisCacheWriterwith locking behavior.static RedisCacheWriterRedisCacheWriter.lockingRedisCacheWriter(RedisConnectionFactory connectionFactory, Duration sleepTime, RedisCacheWriter.TtlFunction lockTtlFunction, BatchStrategy batchStrategy) Create newRedisCacheWriterwith locking behavior.static RedisCacheWriterRedisCacheWriter.lockingRedisCacheWriter(RedisConnectionFactory connectionFactory, BatchStrategy batchStrategy) Create newRedisCacheWriterwith locking behavior.static RedisCacheWriterRedisCacheWriter.nonLockingRedisCacheWriter(RedisConnectionFactory connectionFactory) Create newRedisCacheWriterwithout locking behavior.static RedisCacheWriterRedisCacheWriter.nonLockingRedisCacheWriter(RedisConnectionFactory connectionFactory, BatchStrategy batchStrategy) Create newRedisCacheWriterwithout locking behavior.RedisCacheWriter.withStatisticsCollector(CacheStatisticsCollector cacheStatisticsCollector) Obtain aRedisCacheWriterusing the givenCacheStatisticsCollectorto collect metrics.Methods in org.springframework.data.redis.cache with parameters of type RedisCacheWriterModifier and TypeMethodDescriptionRedisCacheManager.builder(RedisCacheWriter cacheWriter) Factory method returning a Builder used to construct and configure aRedisCacheManagerinitialized with the givenRedisCacheWriter.RedisCacheManager.RedisCacheManagerBuilder.cacheWriter(RedisCacheWriter cacheWriter) Configure aRedisCacheWriter.RedisCacheManager.RedisCacheManagerBuilder.fromCacheWriter(RedisCacheWriter cacheWriter) Factory method returning a new Builder used to create and configure aRedisCacheManagerusing the givenRedisCacheWriter.Constructors in org.springframework.data.redis.cache with parameters of type RedisCacheWriterModifierConstructorDescriptionprotectedRedisCache(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.