MapCache<K, V>.lru constructor

MapCache<K, V>.lru({int maximumSize })

Creates a new MapCache, using LruMap as the backing Map. Optionally specify maximumSize.

Implementation

factory MapCache.lru({int maximumSize}) {
  return new MapCache<K, V>(map: new LruMap(maximumSize: maximumSize));
}