Package com.sap.cloud.security.config
Interface CacheConfiguration
-
public interface CacheConfigurationInterface used for the configuration of caches.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DurationgetCacheDuration()Returns the duration of the expire after write property of the cache.intgetCacheSize()Returns the number of elements the cache can hold.default booleanisCacheDisabled()Caching is disabled when this returnstrue.default booleanisCacheStatisticsEnabled()Returnstrueif cache statistics recording has been enabled.
-
-
-
Method Detail
-
getCacheDuration
Duration getCacheDuration()
Returns the duration of the expire after write property of the cache. Cached elements are automatically invalidated after this fixed duration has elapsed.- Returns:
- duration of expire after write.
-
getCacheSize
int getCacheSize()
Returns the number of elements the cache can hold.- Returns:
- the size of the cache.
-
isCacheDisabled
default boolean isCacheDisabled()
Caching is disabled when this returnstrue.- Returns:
trueif cache is disabled
-
isCacheStatisticsEnabled
default boolean isCacheStatisticsEnabled()
Returnstrueif cache statistics recording has been enabled. If it is enabled, cache statistics might be obtained from theCacheable.- Returns:
trueif cache statistics is enabled
-
-