MapCache< K, V>.lru constructor
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));
}