Package io.quarkus.cache.deployment
Class CacheConfig.CaffeineConfig.CaffeineNamespaceConfig
- java.lang.Object
-
- io.quarkus.cache.deployment.CacheConfig.CaffeineConfig.CaffeineNamespaceConfig
-
- Enclosing class:
- CacheConfig.CaffeineConfig
public static class CacheConfig.CaffeineConfig.CaffeineNamespaceConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Optional<Duration>expireAfterAccessSpecifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last read.(package private) Optional<Duration>expireAfterWriteSpecifies 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.(package private) OptionalIntinitialCapacityMinimum total size for the internal data structures.(package private) OptionalLongmaximumSizeMaximum number of entries the cache may contain.(package private) booleanmetricsEnabledWhether or not metrics are recorded if the application depends on the Micrometer extension.
-
Constructor Summary
Constructors Constructor Description CaffeineNamespaceConfig()
-
-
-
Field Detail
-
initialCapacity
@ConfigItem OptionalInt initialCapacity
Minimum total size for the internal data structures. Providing a large enough estimate at construction time avoids the need for expensive resizing operations later, but setting this value unnecessarily high wastes memory.
-
maximumSize
@ConfigItem OptionalLong maximumSize
Maximum number of entries the cache may contain. Note that the cache may evict an entry before this limit is exceeded or temporarily exceed the threshold while evicting. As the cache size grows close to the maximum, the cache evicts entries that are less likely to be used again. For example, the cache may evict an entry because it hasn't been used recently or very often.
-
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 entry's creation, the most recent replacement of its value, or its last read.
-
metricsEnabled
boolean metricsEnabled
Whether or not metrics are recorded if the application depends on the Micrometer extension. Setting this value totruewill enable the accumulation of cache stats inside Caffeine.
-
-