(id: string, value: T)
| 96 | } |
| 97 | |
| 98 | async function write(id: string, value: T): Promise<void> { |
| 99 | const target = fileFor(id); |
| 100 | await mkdir(dir, { recursive: true, mode: 0o700 }); |
| 101 | await atomicWrite(target, JSON.stringify(value, null, 2)); |
| 102 | } |
| 103 | |
| 104 | async function read(id: string): Promise<T | undefined> { |
| 105 | const path = fileFor(id); |
nothing calls this directly
no test coverage detected