Class LRUCache<K,V>
- java.lang.Object
-
- io.undertow.server.handlers.cache.LRUCache<K,V>
-
public class LRUCache<K,V> extends Object
A non-blocking cache where entries are indexed by a key.To reduce contention, entry allocation and eviction execute in a sampling fashion (entry hits modulo N). Eviction follows an LRU approach (oldest sampled entries are removed first) when the cache is out of capacity.
This cache can also be configured to run in FIFO mode, rather than LRU.
- Author:
- Jason T. Greene, Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LRUCache.CacheEntry<K,V>
-