OptionaleffectiveEffective demand hit-rate across all cache tiers:
(l0Hits + l1Hits + l2Hits) / (l0Hits + l1Hits + l2Hits + networkRequests).
Undefined when neither L0 provider nor demand counters are wired
(lets the UI distinguish "not wired up" from "0% hit rate").
Optionall1L1 memory cache breakdown (optional, only when CacheStatsProvider connected)
Optionall2L2 OPFS cache breakdown (optional, only when CacheStatsProvider connected)
Successful gets (= L2 hits).
Failed gets (file not present, size mismatch, I/O error).
OptionalcanceledReads?: numberReads canceled before filesystem I/O.
OptionalactiveReads?: numberOptionalqueuedReads?: numberOptionalquotaWriteSkipped?: numberR3: surface OPFS health counters so the cache tab can render
them inline (rather than only signalling them via the
cache-errors-detected / quota-constrained badges). Each is
optional — providers that don't expose them simply omit the
field and the UI degrades to a "no errors" indicator.
OptionalwriteFailures?: numberOptionalcorruptedEntries?: numberOptionalmetadataParseFailures?: numberOptionall0L0 decompressed chunk cache breakdown (optional, only when L0 cache connected)
OptionalmaxSize?: numberResolved (heap-aware) byte budget.
OptionalsliceSliceCache ("S-cache") breakdown (optional, only when the SliceCache is connected)
OptionalthrashMisses?: numberEviction-induced misses (working-set-over-budget / cyclic-playback thrash).
OptionalmaxSize?: numberResolved (heap-aware) byte budget — varies by device heap.
OptionalfullLadderCount?: numberNumber of ladder entries whose cached prefix is complete.
OptionalladderDepthHistogram?: Record<string, number>Cached ladder counts keyed by storedDepth/totalDepth.
OptionalenabledWhether caching is enabled. Derived from
telemetryState.kind === 'enabled'. New code should read
telemetryState directly to distinguish the three not-enabled
variants from each other.
OptionaltelemetryExplicit cache telemetry state. Distinguishes "disabled-no-cache" (URL flag), "disabled-config" (app config / isEnabled false), and "not-wired" (provider absent during scene transition or before cache setup completes) from each other.
OptionalnetworkNetwork I/O stats (optional, only when CacheStatsProvider connected)
OptionaltotalBytesServed?: numberCumulative bytes delivered to demand callers across all cache tiers (L1 + L2 + network). Optional — providers predating the field omit it. Drives the Overview "DATA LOADED" card so it stays informative on warm/cache-served reloads.
OptionaltotalRequestsServed?: numberCount of demand reads served across all tiers.
OptionalstatusStatus badges for the cache tab. Derived in the aggregator from telemetry state + provider presence + cache health. UI renders each as a small chip; consumers reading metrics programmatically (e.g. debug snapshots, E2E tests) can also assert on them.
OptionalhealthCache health snapshot mirroring MultiLevelCachingStore.getStats().health. Optional because some providers may not surface it.
OptionalvalidationMode?: CacheValidationModeOptionallastValidatedAt?: number | nullOptionalunvalidatedExternalDataset?: booleanOptionalopfsAvailable?: booleanS2: true when OPFS L2 storage is operational or caching is
disabled (no L2 expected). false when L2 was expected but
could not be initialised — drives the opfs-unavailable badge.
Cache metrics for detailed analytics