public interface AsCacheStrategy
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the cache by removing all cached entries.
|
long |
getHits()
Returns the hit count.
|
long |
getMisses()
Returns the miss count.
|
long |
getSize()
Returns number of elements currently in the cache.
|
<V> V |
getWithLoader(AsCacheKey cacheKey,
java.util.function.Function<AsCacheKey,V> valueLoader)
Returns the value in the cache for the given key.
|
boolean |
isEnabled(AsCacheScope cacheScope)
Checks if the cache is enabled for the given
AsCacheScope. |
boolean isEnabled(AsCacheScope cacheScope)
AsCacheScope.true if the cache is enabled, false otherwise<V> V getWithLoader(AsCacheKey cacheKey, java.util.function.Function<AsCacheKey,V> valueLoader)
cacheKey - - the cache keyvalueLoader - - function to load valuesvoid clear()
long getSize()
long getHits()
long getMisses()
Copyright © 2018 SAP SE. All Rights Reserved.