Cache<K, V>.lru constructor
Constructs a Least Recently Used (LRU) cache.
The loader
defines the function to construct items for the cache; and
maximumSize
defines the maximum number of items cached.
Implementation
factory Cache.lru({required Loader<K, V> loader, int maximumSize = 100}) =>
LruCache<K, V>(loader, maximumSize);