Implement a very basic LRU cache based on LinkedHashMap.