public class LRUCache extends LinkedHashMap<Integer,Long>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
LRUCache(int capacity,
float loadFactor,
long expire_in) |
| Modifier and Type | Method and Description |
|---|---|
static LRUCache |
getInstance() |
boolean |
isPresent(String key) |
protected boolean |
removeEldestEntry(Map.Entry<Integer,Long> eldest) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic static LRUCache getInstance()
protected boolean removeEldestEntry(Map.Entry<Integer,Long> eldest)
removeEldestEntry in class LinkedHashMap<Integer,Long>public boolean isPresent(String key)
Copyright © 2017. All rights reserved.