MemoryCacheStore constructor

MemoryCacheStore({
  1. int maxEntries = 100,
  2. int maxBytes = 16 * 1024 * 1024,
})

Implementation

MemoryCacheStore({this.maxEntries = 100, this.maxBytes = 16 * 1024 * 1024}) {
  if (maxEntries < 1 || maxBytes < 0) {
    throw ArgumentError('Invalid cache limits.');
  }
}