K - 键类型V - 值类型public class LFUCache<K,V> extends AbstractCache<K,V>
cacheMap, capacity, existCustomTimeout, hitCount, missCount, timeout| 限定符和类型 | 方法和说明 |
|---|---|
protected int |
pruneCache()
清理过期对象。
|
cacheObjIterator, capacity, clear, containsKey, get, get, get, getHitCount, getMissCount, isEmpty, isFull, isPruneExpiredActive, iterator, onRemove, prune, put, put, remove, size, timeout, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic LFUCache(int capacity)
capacity - 容量public LFUCache(int capacity,
long timeout)
capacity - 容量timeout - 过期时长protected int pruneCache()
pruneCache 在类中 AbstractCache<K,V>Copyright © 2023. All rights reserved.