put
Associates the specified value with the specified key in the cache.
If the cache previously contained a mapping for the key, the old value is replaced and the entry is moved to the "most recently used" position (tail).
If the cache is full (size >maxSize) after the insertion, the "least recently used" entry (head) is evicted.
Parameters
key
The key with which the specified value is to be associated.
value
The value to be associated with the specified key.