public class LRUCache<K,V> extends Object
LinkedHashMap.| Constructor and Description |
|---|
LRUCache(int cacheSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
cacheSize() |
void |
clear() |
V |
get(K key) |
void |
put(K key,
V value) |
void |
putIfAbsent(K key,
V value) |
Copyright © 2021. All rights reserved.