MemCacheStore constructor

MemCacheStore({
  1. int maxSize = 7340032,
  2. int maxEntrySize = 512000,
})

maxSize: Total allowed size in bytes (7MB by default).

maxEntrySize: Allowed size per entry in bytes (500KB by default).

To prevent making this store useless, be sure to respect the following lower-limit rule: maxEntrySize * 5 <= maxSize.

Implementation

MemCacheStore({
  int maxSize = 7340032,
  int maxEntrySize = 512000,
}) : _cache = _LruMap(maxSize: maxSize, maxEntrySize: maxEntrySize);