(key: string)
| 86 | * @param key the key to remove |
| 87 | */ |
| 88 | const removeKey = (key: string) => { |
| 89 | // Force will not throw an error if the file doesn't exist |
| 90 | const goRes = goSync(() => rmSync(join(CACHE_BASE_PATH, key), { force: true })); |
| 91 | if (!goRes.success) { |
| 92 | logger.error(`Unable to remove key from fs cache`); |
| 93 | logger.error(goRes.error.stack!); |
| 94 | } |
| 95 | }; |
| 96 | |
| 97 | /** |
| 98 | * Add a cache entry |
no outgoing calls
no test coverage detected