maxEntries property

int get maxEntries

Maximum number of entries to store in the cache.

Once this many entries have been cached, the least-recently-used entry is evicted when adding a new entry.

Implementation

int get maxEntries => _maxEntries;
set maxEntries (int value)

Changes the maximum cache size.

Implementation

set maxEntries(int value) {
  assert(value >= 0);
  if (value == maxEntries) return;
  _maxEntries = value;
}