HttpCacheStats class

Counters for one HttpCache.

Annotations
  • @immutable

Constructors

HttpCacheStats({int entries = 0, int bytes = 0, int hits = 0, int misses = 0, int revalidated = 0, int bypassed = 0})
Creates stats.
const

Properties

bypassed → int
Requests that were not cacheable (method, Authorization, body, …).
final
bytes → int
Bytes held.
final
entries → int
Stored entries.
final
hashCode → int
The hash code for this object.
no setterinherited
hits → int
Requests answered from a fresh entry.
final
misses → int
Cacheable requests that had to go to the origin.
final
revalidated → int
Stale entries confirmed by a 304.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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