(value: unknown)
| 39 | } |
| 40 | |
| 41 | upsert(value: unknown): RuntimeRecord | null { |
| 42 | const runtime = validateRuntimeRecord(value) |
| 43 | if (!runtime.ok) return null |
| 44 | this.records.set(runtime.value.runtimeId, runtime.value) |
| 45 | return runtime.value |
| 46 | } |
| 47 | |
| 48 | replace(records: Iterable<unknown>, filter: RuntimeRecordCacheFilter = {}): RuntimeRecord[] { |
| 49 | if (Object.keys(filter).length > 0) { |
no test coverage detected