Package io.quarkus.cache.redis.runtime
Interface RedisCacheRuntimeConfig
public interface RedisCacheRuntimeConfig
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies 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.If set, theSCANcommand (used to implement invalidation) will have theCOUNTargument with given value.prefix()The key prefix allowing to identify the keys belonging to the cache.ttl()Deprecated, for removal: This API element is subject to removal in a future version.Whether the access to the cache should be using optimistic locking.
-
Method Details
-
ttl
Deprecated, for removal: This API element is subject to removal in a future version.UseexpireAfterWrite()instead. This will be removed after Quarkus 3.20.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, the value "cache:{cache-name}" will be used. The variable "{cache-name}" is resolved from the value set in the cache annotations. -
useOptimisticLocking
Whether the access to the cache should be using optimistic locking. See Redis Optimistic Locking for details. Default isfalse. -
invalidationScanSize
OptionalInt invalidationScanSize()If set, theSCANcommand (used to implement invalidation) will have theCOUNTargument with given value. If not set (default), noCOUNTargument is present.
-
expireAfterWrite()instead.