Package com.github.loki4j.client.util
Interface Cache<K,V>
-
- All Known Implementing Classes:
Cache.UnboundAtomicMapCache
public interface Cache<K,V>A simple cache interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCache.UnboundAtomicMapCache<K,V>Simple cache implementation based on atomic reference on unbound hash map.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Vget(K key, java.util.function.Supplier<V> onMiss)Get the value from cache based by key.
-