Caches value for key. The value is moved to the head of the queue.
value
key
the previous value mapped by key.