Uses of Interface
org.springframework.data.redis.cache.RedisCacheWriter
-
Uses of RedisCacheWriter in org.springframework.data.redis.cache
Modifier and TypeMethodDescriptionprotected RedisCacheWriter
RedisCache.getCacheWriter()
Gets the configuredRedisCacheWriter
used to adapt Redis for cache operations.protected RedisCacheWriter
RedisCacheManager.getCacheWriter()
Returns a reference to the configuredRedisCacheWriter
used to performRedisCache
operations, such as reading from and writing to the cache.RedisCache.getNativeCache()
static RedisCacheWriter
RedisCacheWriter.lockingRedisCacheWriter
(RedisConnectionFactory connectionFactory) Create newRedisCacheWriter
with locking behavior.static RedisCacheWriter
RedisCacheWriter.lockingRedisCacheWriter
(RedisConnectionFactory connectionFactory, Duration sleepTime, RedisCacheWriter.TtlFunction lockTtlFunction, BatchStrategy batchStrategy) Create newRedisCacheWriter
with locking behavior.static RedisCacheWriter
RedisCacheWriter.lockingRedisCacheWriter
(RedisConnectionFactory connectionFactory, BatchStrategy batchStrategy) Create newRedisCacheWriter
with locking behavior.static RedisCacheWriter
RedisCacheWriter.nonLockingRedisCacheWriter
(RedisConnectionFactory connectionFactory) Create newRedisCacheWriter
without locking behavior.static RedisCacheWriter
RedisCacheWriter.nonLockingRedisCacheWriter
(RedisConnectionFactory connectionFactory, BatchStrategy batchStrategy) Create newRedisCacheWriter
without locking behavior.RedisCacheWriter.withStatisticsCollector
(CacheStatisticsCollector cacheStatisticsCollector) Obtain aRedisCacheWriter
using the givenCacheStatisticsCollector
to collect metrics.Modifier and TypeMethodDescriptionRedisCacheManager.builder
(RedisCacheWriter cacheWriter) Factory method returning a Builder used to construct and configure aRedisCacheManager
initialized 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 aRedisCacheManager
using the givenRedisCacheWriter
.ModifierConstructorDescriptionprotected
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.