Get current cache statistics
OptionalmaxSize?: numberResolved (heap-aware) L1 byte budget.
OptionalcanceledReads?: numberOptionalactiveReads?: numberOptionalqueuedReads?: numberOptionalmaxSize?: numberFixed OPFS/disk byte budget.
OptionaloversizedWriteSkipped?: numberOptional OPFS health counters; provider stubs may omit them.
OptionalquotaWriteSkipped?: numberOptionalevictions?: numberOptionalwriteFailures?: numberOptionalcorruptedEntries?: numberOptionalmetadataParseFailures?: numberOptionalorphanedFilesRemoved?: numberOptionaltotalBytesServed?: numberCumulative bytes delivered to demand callers across all tiers (L1 + L2 + network). Optional so provider stubs may omit it.
OptionaltotalRequestsServed?: numberOptionaldemand?: { l1Hits: number; l2Hits: number; networkRequests: number }Per-tier demand-hit counters from the multi-level caching store. Each demand request increments exactly one of l1Hits / l2Hits / networkRequests. Optional so providers that don't report it still typecheck.
Optionalhealth?: {Optional cache validation health.
OptionalopfsAvailable?: booleanS2: true when OPFS L2 storage is operational, or when the tier
was deliberately skipped (?noCache / ?noOpfs — no L2
expected). false only for UNREQUESTED degradation: L2 was
expected but could not be initialised, or the OPFS circuit
breaker disabled it after repeated timeouts. Older providers omit
the field entirely; consumers treat the absent case as "unknown /
assume available".
Clear L1 memory cache
Clear L2 OPFS cache
Clear all caches (L1 + L2)
Check if caching is enabled
Interface for objects that provide cache statistics. Used for loose coupling between MultiLevelCachingStore and DataLoadingMonitor.