- Type Parameters:
K - Key type
V - Value type
public class BoundedConcurrentCache<K,V extends java.lang.Comparable<V> & CacheValue<K>>
extends java.lang.Object
Bounded concurrent cache that stores key value pairs (K,V).
When the cache reaches its maximum capacity, any new item added replaces the largest item in the cache.
To update a value in the cache, call putReplace.
This cache is thread-safe, but the behavior is not 100% deterministic and may end up returning slightly less
than the size limit in order to boost performance. However, it will never return a list that is over the limit.