Uses of Interface
org.springframework.data.redis.cache.RedisCacheWriter.TtlFunction
-
Uses of RedisCacheWriter.TtlFunction in org.springframework.data.redis.cache
Modifier and TypeClassDescriptionfinal record
RedisCacheWriter.TtlFunction
implementation returning the given, predeterminedDuration
used for per cache entry time-to-live (TTL) expiration.Modifier and TypeMethodDescriptionRedisCacheConfiguration.getTtlFunction()
Gets theRedisCacheWriter.TtlFunction
used to compute a cache key time-to-live (TTL) expiration.static RedisCacheWriter.TtlFunction
Creates a SingletonRedisCacheWriter.TtlFunction
using the givenDuration
.static RedisCacheWriter.TtlFunction
RedisCacheWriter.TtlFunction.persistent()
Returns aRedisCacheWriter.TtlFunction
to create persistent entires that do not expire.Modifier and TypeMethodDescriptionRedisCacheConfiguration.entryTtl
(RedisCacheWriter.TtlFunction ttlFunction) Set theTTL function
to compute the time to live for cache entries.static RedisCacheWriter
RedisCacheWriter.lockingRedisCacheWriter
(RedisConnectionFactory connectionFactory, Duration sleepTime, RedisCacheWriter.TtlFunction lockTtlFunction, BatchStrategy batchStrategy) Create newRedisCacheWriter
with locking behavior.