2 ms·
Java and JavaScript both have a way to get keys back in insertion order. It’s pretty simple to implement an LRU cache when you have time ordered iterators.
by hinkley 2y ago
Java and JavaScript both have a way to get keys back in insertion order.
It’s pretty simple to implement an LRU cache when you have time ordered iterators.