Interface | Description |
---|---|
Cache<K,V> |
A simple interface for a cache, with a map-like API.
|
CacheExpiryListener<K,V> |
An entity interested in receiving cache expiry events.
|
Class | Description |
---|---|
Cache.Entry<K,V> |
An node containing the hashable key and value of a cache element.
|
CacheExpiryEvent<K,V> |
An event indicating one or more element was expired from a cache.
|
ExpiryCache<K,V> |
An abstract implementation of a cache with a fixed capacity, which expires one or more of its
elements when its capacity is reached and a new element is added to the cache.
|
LFUAgingCache<K,V> |
An implementation of a least-frequently-used (LFU) cache which additionally adjusts the
importance of individual elements, based on the age of their last access.
|
LFUAgingCache.LFUEntry<K,V> |
A sortable entry containing the hashable key and value of a cache entry.
|
LRUCache<K,V> |
An implementation of a least-recently-used (LRU) cache.
|
LRUCache.LRUEntry<K,V> |
An entry in a doubly linked list organized from head to tail in the order of least recently
accessed entry to most recently accessed entry.
|
Enum | Description |
---|---|
CapacityPolicy |
This enumeration describes the policy applied in the situation where an attempt to expire one or more
elements of an expiry cache fails, due to an expiration test function overriding enough expiration
candidates such that a new element could not be added without growing the cache beyond its set size limit.
|