(cacheKey: string, data: ModelRecord)
| 160 | } |
| 161 | |
| 162 | async function writeModels(cacheKey: string, data: ModelRecord) { |
| 163 | const filename = `${cacheKeyToFilename(cacheKey)}_models.json` |
| 164 | const cacheDir = await getCacheDirectoryPath(ContextProxy.instance.globalStorageUri.fsPath) |
| 165 | await safeWriteJson(path.join(cacheDir, filename), data) |
| 166 | } |
| 167 | |
| 168 | async function readModels(cacheKey: string): Promise<ModelRecord | undefined> { |
| 169 | const filename = `${cacheKeyToFilename(cacheKey)}_models.json` |
no test coverage detected