public class LFUCache<K,V> extends Object
| Constructor and Description |
|---|
LFUCache() |
LFUCache(int maxCapacity,
float evictionFactor)
Constructs and initializes cache with specified capacity and eviction
factor.
|
| Modifier and Type | Method and Description |
|---|---|
V |
get(K key) |
int |
getCapacity() |
int |
getSize()
Returns cache current size.
|
V |
put(K key,
V value) |
V |
remove(K key) |
public LFUCache()
public LFUCache(int maxCapacity,
float evictionFactor)
IllegalArgumentException.maxCapacity - cache max capacityevictionFactor - cache proceedEviction factorCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.