-
public interface DDCache<K, V>
-
-
Method Summary
Modifier and Type Method Description abstract VcomputeIfAbsent(K key, Function<K, out V> producer)Look up or create and store a value in the cache. abstract voidclear()Clear the cache. abstract voidvisit(BiConsumer<K, V> consumer)Visits elements currently in the cache; for debugging/triage purposes. -
-
Method Detail
-
computeIfAbsent
abstract V computeIfAbsent(K key, Function<K, out V> producer)
Look up or create and store a value in the cache.
- Parameters:
key- the key to look upproducer- how to create a cached value base on the key if the lookup fails
-
clear
abstract void clear()
Clear the cache.
-
-
-
-