LRU Cache Implementation in Java