put method

void put(
  1. K key,
  2. V value
)

Implementation

void put(K key, V value) {
  if (_map.length == maxSize) {
    _evictLRU();
  }
  _map[key] = value;
}