Package io.quarkus.cache.redis.runtime
Class RedisCacheRuntimeConfig
- java.lang.Object
-
- io.quarkus.cache.redis.runtime.RedisCacheRuntimeConfig
-
public class RedisCacheRuntimeConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Optional<Duration>expireAfterAccessSpecifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the last access of its value.(package private) Optional<Duration>expireAfterWriteSpecifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.Optional<String>prefixthe key prefix allowing to identify the keys belonging to the cache.Optional<Duration>ttlDeprecated.UseexpireAfterWriteinstead.Optional<Boolean>useOptimisticLockingWhether the access to the cache should be using optimistic locking.
-
Constructor Summary
Constructors Constructor Description RedisCacheRuntimeConfig()
-
-
-
Field Detail
-
ttl
@ConfigItem @Deprecated public Optional<Duration> ttl
Deprecated.UseexpireAfterWriteinstead.The default time to live of the item stored in the cache.
-
expireAfterWrite
@ConfigItem Optional<Duration> expireAfterWrite
Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.
-
expireAfterAccess
@ConfigItem Optional<Duration> expireAfterAccess
Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the last access of its value.
-
prefix
@ConfigItem public Optional<String> prefix
the key prefix allowing to identify the keys belonging to the cache. If not set, use "cache:$cache-name"
-
useOptimisticLocking
@ConfigItem public Optional<Boolean> useOptimisticLocking
Whether the access to the cache should be using optimistic locking. See Redis Optimistic Locking for details. Default isfalse.
-
-