public class LRUCache<K,V> extends Object
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.
Modifier and Type | Class and Description |
---|---|
static class | LRUCache.CacheEntry<K,V> |
Constructor and Description |
---|
LRUCache(int maxEntries, int maxAge) |
Copyright © 2015 JBoss by Red Hat. All rights reserved.