MemoryCacheOptions class

Provides configuration options for MemoryCache.

Constructors

MemoryCacheOptions({Duration expirationScanFrequency = const Duration(minutes: 1), int? sizeLimit, double compactionPercentage = 0.05, bool trackLinkedCacheEntries = false, bool trackStatistics = false})
Creates a new instance of MemoryCacheOptions.

Properties

compactionPercentage double
Gets or sets the amount to compact the cache by when the maximum size is exceeded.
final
expirationScanFrequency Duration
Gets or sets the minimum length of time between successive scans for expired items.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeLimit int?
Gets or sets the maximum size of the cache.
final
trackLinkedCacheEntries bool
Gets or sets a value that determines whether cache entries should track hierarchical relationships.
final
trackStatistics bool
Gets or sets a value that determines whether statistics should be collected for the cache.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited