MetricCachingService class
Three-level metric caching service.
Constructors
- MetricCachingService({MetricCacheConfig config = const MetricCacheConfig()})
Properties
- config → MetricCacheConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearAll(
) → void - Clear all caches.
-
clearRequestCache(
) → void - Clear request-scoped cache (call at end of pipeline).
-
getOrCompute(
String metricId, ProfileContext context, Future< MetricComputeResult> compute()) → Future<MetricComputeResult> - Get cached metric or compute and cache.
-
invalidate(
{String? metricId, String? contextId, String? snapshotHash, bool cascade = true}) → Future< void> - Invalidate cached metrics per design/04-caching.md §4.
-
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