method NoOpDiagnosticsCollector.prototype.recordCacheEvent
NoOpDiagnosticsCollector.prototype.recordCacheEvent(
_operation:
"hit"
| "miss"
| "write"
| "evict"
,
_key: string,
_size?: number,
): void

Record a cache event (no-op implementation)

Parameters

_operation:
"hit"
| "miss"
| "write"
| "evict"
  • Cache operation type (ignored)
_key: string
  • Cache key (ignored)
optional
_size: number
  • Optional size in bytes (ignored)

Return Type

void

Usage

import { NoOpDiagnosticsCollector } from ".";