BucketReport class

Report for a single cache bucket's statistics.

Contains size, item count, hit/miss rates, and timing information.

Constructors

BucketReport({required String name, required String displayName, required int sizeBytes, required double sizePercent, required int itemCount, required int hitCount, required int missCount, required int evictionCount, DateTime? oldestItem, DateTime? newestItem, required BackendType backend, String? group})
Creates a new BucketReport.
const

Properties

backend BackendType
The storage backend type used by this bucket.
final
displayName String
User-facing display name.
final
evictionCount int
Number of items that have been evicted from this bucket.
final
group String?
The group this bucket belongs to, if any.
final
hashCode int
The hash code for this object.
no setterinherited
hitCount int
Number of cache hits (successful reads).
final
hitRate double
Hit rate ratio from 0.0 to 1.0.
no setter
itemCount int
Number of items currently cached in this bucket.
final
missCount int
Number of cache misses (failed reads).
final
name String
Internal name of the bucket.
final
newestItem DateTime?
Timestamp of the newest item in this bucket, if any.
final
oldestItem DateTime?
Timestamp of the oldest item in this bucket, if any.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeBytes int
Total size in bytes of all items in this bucket.
final
sizePercent double
This bucket's size as a percentage of total cache size (0.0 to 1.0).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this report to a JSON-serializable map.
toString() String
A string representation of this object.
inherited

Operators

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