public class SynchronizedMemoryCache<K,V> extends LruMemoryCache<K,V>
Constructor and Description |
---|
SynchronizedMemoryCache(int capacity) |
SynchronizedMemoryCache(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 timeMillis) |
public SynchronizedMemoryCache(int capacity)
public SynchronizedMemoryCache(int capacity, int lowWater)
public int getCapacity()
getCapacity
in class LruMemoryCache<K,V>
public int getUsedCapacity()
getUsedCapacity
in class LruMemoryCache<K,V>
public int getEntryCount()
getEntryCount
in class LruMemoryCache<K,V>
public int trimToAge(long timeMillis)
trimToAge
in class LruMemoryCache<K,V>
public boolean containsKey(K key)
containsKey
in class LruMemoryCache<K,V>
public void clear()
clear
in class LruMemoryCache<K,V>