Class RedisCacheRuntimeConfig

java.lang.Object
io.quarkus.cache.redis.runtime.RedisCacheRuntimeConfig

public class RedisCacheRuntimeConfig extends Object
  • Field Details

    • ttl

      @ConfigItem @Deprecated public Optional<Duration> ttl
      Deprecated.
      Use expireAfterWrite instead.
      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 is false.
  • Constructor Details

    • RedisCacheRuntimeConfig

      public RedisCacheRuntimeConfig()