Class RedisCacheInfo


  • public class RedisCacheInfo
    extends Object
    • Field Detail

      • name

        public String name
        The cache name
      • expireAfterAccess

        public Optional<Duration> expireAfterAccess
        The default time to live of the item stored in the cache
      • expireAfterWrite

        public Optional<Duration> expireAfterWrite
        The default time to live to add to the item once read
      • prefix

        public String prefix
        the key prefix allowing to identify the keys belonging to the cache. If not set, use "cache:$cache-name"
      • valueType

        public String valueType
        The default type of the value stored in the cache.
      • keyType

        public String keyType
        The key type, String by default.
      • useOptimisticLocking

        public boolean useOptimisticLocking
        Whether the access to the cache should be using optimistic locking See Redis Optimistic Locking for details.
    • Constructor Detail

      • RedisCacheInfo

        public RedisCacheInfo()