CacheStats class
Statistics for HTTP cache operations.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hitRatio → double
-
Ratio of cache hits to total requests (between 0.0 and 1.0).
no setter
- hitRatioPercentage → String
-
Percentage of cache hits formatted as a string (e.g., "85.0%").
no setter
- hits ↔ int
-
Number of successful cache hits.
getter/setter pair
- invalidations ↔ int
-
Number of cache invalidation events.
getter/setter pair
- misses ↔ int
-
Number of cache misses (requests served from network).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stores ↔ int
-
Number of responses stored in cache.
getter/setter pair
- totalRequests → int
-
Total number of evaluated requests (hits + misses).
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Resets all statistics counters to zero.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited