Class ConcurrentLRUCache
-
- All Implemented Interfaces:
public final class ConcurrentLRUCache<K extends Object, V extends Object>A very simple yet fast LRU cache with TTL support
-
-
Constructor Summary
Constructors Constructor Description ConcurrentLRUCache(Integer capacity)ConcurrentLRUCache(Duration ttl, Integer capacity)Construct a least recently used cache ConcurrentLRUCache(Long ttl, Integer capacity)Construct a least recently used cache
-
Method Summary
-
-
Method Detail
-
computeIfAbsent
final V computeIfAbsent(K key, Function1<K, V> mappingFunction)
-
-
-
-