public class LruMemoryCache<K,V>
extends java.lang.Object
Constructor and Description |
---|
LruMemoryCache(int capacity) |
LruMemoryCache(int capacity,
int lowWater) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(K key) |
V |
get(K key) |
int |
getCapacity() |
int |
getEntryCount() |
int |
getUsedCapacity() |
V |
put(K key,
V value,
int size) |
V |
remove(K key) |
int |
trimToAge(long maxAgeMillis) |
public LruMemoryCache(int capacity)
public LruMemoryCache(int capacity, int lowWater)
public int getCapacity()
public int getUsedCapacity()
public int getEntryCount()
public int trimToAge(long maxAgeMillis)
public boolean containsKey(K key)
public void clear()