LRUCache<K, V> constructor

LRUCache<K, V>(
  1. int maxSize
)

Creates an LRUCache with the specified maxSize.

Implementation

LRUCache(this.maxSize)
    : assert(maxSize > 0, 'maxSize must be greater than 0'),
      _cache = LinkedHashMap<K, V>();