The Last Shall Be the First

LRU (Last Recently Used)

Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.