Tag Archives: LinkedHashMap

Simple LRU or FIFO Cache

There is a very simple way to make a FIFO or LRU cache with the existing LinkedHashMap implementation of the default Java VM made by Joshua Bloch. The LinkedHashMap already has a method you can override, which defines when to … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment