method DiagnosticsCollector.prototype.recordCacheEvent DiagnosticsCollector.prototype.recordCacheEvent(operation: "hit" | "miss" | "write" | "evict",key: string,size?: number,): void Records a cache event Parameters operation: "hit" | "miss" | "write" | "evict" key: string optional size: number Return Type void