OUT
- Return type of Cacheablepublic interface Cacheable<OUT>
Modifier and Type | Method and Description |
---|---|
OUT |
computeIfAbsent(java.lang.Object key,
java.util.function.Function<java.lang.Object,OUT> fn)
Implementation should call the underlying cache
|
default SoftenedCacheable<OUT> |
soften() |
default SoftenedCacheable<OUT> soften()
OUT computeIfAbsent(java.lang.Object key, java.util.function.Function<java.lang.Object,OUT> fn) throws java.lang.Throwable
key
- To lookup cached valuefn
- Function to compute value, if it is not in the cachejava.lang.Throwable