sizeLimit property
Gets or sets the maximum size of the cache.
When set, the cache will enforce this limit by removing entries when the total size exceeds sizeLimit. The size is an arbitrary value defined by the application through MemoryCacheEntryOptions.size.
When null (default), the cache has no size limit.
Implementation
final int? sizeLimit;