Fix LRUCache to be ordered by access time.

This commit is contained in:
Greyson Parrelli
2023-11-10 11:47:56 -08:00
parent a81e5c4e6b
commit ebef4b079c

View File

@@ -8,6 +8,7 @@ public class LRUCache<K,V> extends LinkedHashMap<K,V> {
private final int maxSize;
public LRUCache(int maxSize) {
super(maxSize / 2, 0.75f, true);
this.maxSize = maxSize;
}