Package io.quarkus.cache.redis.runtime
Class RedisCacheRuntimeConfig
java.lang.Object
io.quarkus.cache.redis.runtime.RedisCacheRuntimeConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionSpecifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the last access of its value.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.the key prefix allowing to identify the keys belonging to the cache.Deprecated.Whether the access to the cache should be using optimistic locking. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ttl
Deprecated.UseexpireAfterWriteinstead.The default time to live of the item stored in the cache. -
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
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
the key prefix allowing to identify the keys belonging to the cache. If not set, use "cache:$cache-name" -
useOptimisticLocking
Whether the access to the cache should be using optimistic locking. See Redis Optimistic Locking for details. Default isfalse.
-
-
Constructor Details
-
RedisCacheRuntimeConfig
public RedisCacheRuntimeConfig()
-
expireAfterWriteinstead.