Interface CacheConfig
- All Known Subinterfaces:
CacheConfig.BuildableCacheConfig
@ConfigMapping(prefix="polaris.persistence.cache")
public interface CacheConfig
Persistence cache configuration.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault LongSupplierenable()Optionally disable the cache, the default value istrue, meaning that the cache is enabled by default.Duration to cache whether a reference does not exist (negative caching).Duration to cache the state of references.sizing()
-
Field Details
-
INVALID_REFERENCE_NEGATIVE_TTL
- See Also:
-
INVALID_REFERENCE_TTL
- See Also:
-
DEFAULT_REFERENCE_TTL_STRING
- See Also:
-
DEFAULT_REFERENCE_TTL
-
DEFAULT_ENABLE
static final boolean DEFAULT_ENABLE- See Also:
-
-
Method Details
-
enable
Optionally disable the cache, the default value istrue, meaning that the cache is enabled by default. -
referenceTtl
Duration to cache the state of references. -
referenceNegativeTtl
Duration to cache whether a reference does not exist (negative caching). -
sizing
Optional<CacheSizing> sizing() -
clockNanos
-