基于数组设计的LRUCache 优势 支持泛型 空间更少 代码 import java.util.*; class LruCache<K, V> { private int capacity; private int size; private K[] keys; private V[] values; private V nullValue; public LruCache(int capacity, V nullValue) { this.capacity = capacity; th...