Package io.quarkus.cache.redis.runtime
Class RedisCacheInfo
- java.lang.Object
-
- io.quarkus.cache.redis.runtime.RedisCacheInfo
-
public class RedisCacheInfo extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Optional<Duration>expireAfterAccessThe default time to live of the item stored in the cacheOptional<Duration>expireAfterWriteThe default time to live to add to the item once readStringkeyTypeThe key type,Stringby default.StringnameThe cache nameStringprefixthe key prefix allowing to identify the keys belonging to the cache.booleanuseOptimisticLockingWhether the access to the cache should be using optimistic locking See Redis Optimistic Locking for details.StringvalueTypeThe default type of the value stored in the cache.
-
Constructor Summary
Constructors Constructor Description RedisCacheInfo()
-
-
-
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,Stringby default.
-
useOptimisticLocking
public boolean useOptimisticLocking
Whether the access to the cache should be using optimistic locking See Redis Optimistic Locking for details.
-
-