public class LRUCache extends LinkedHashMap<String,net.sohelp.boot.admin.core.db.cache.LRUCache.ExpireNode<Object>>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 构造器和说明 |
|---|
LRUCache(int capacity,
long expire) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
delete(String name) |
Object |
get(String name,
String key) |
void |
put(String name,
String key,
Object value) |
void |
put(String name,
String key,
Object value,
long ttl) |
protected boolean |
removeEldestEntry(Map.Entry<String,net.sohelp.boot.admin.core.db.cache.LRUCache.ExpireNode<Object>> 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, toStringcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic void delete(String name)
protected boolean removeEldestEntry(Map.Entry<String,net.sohelp.boot.admin.core.db.cache.LRUCache.ExpireNode<Object>> eldest)
removeEldestEntry 在类中 LinkedHashMap<String,net.sohelp.boot.admin.core.db.cache.LRUCache.ExpireNode<Object>>Copyright © 2025. All rights reserved.