MemoryCacheStatistics class
Holds statistics for the memory cache.
This class provides a snapshot of cache performance metrics at a point in time.
Constructors
- MemoryCacheStatistics({required int currentEntryCount, int? currentEstimatedSize, required int totalMisses, required int totalHits})
-
Creates a new instance of MemoryCacheStatistics.
const
Properties
- currentEntryCount → int
-
Gets the number of entries currently in the cache.
final
- currentEstimatedSize → int?
-
Gets the estimated size of the cache in bytes, or
nullif size tracking is not enabled.final - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalHits → int
-
Gets the total number of cache hits.
final
- totalMisses → int
-
Gets the total number of cache misses.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override