MCPcopy Create free account
hub / github.com/api3dao/airnode / removeKey

Function removeKey

packages/airnode-utilities/src/caching/index.ts:88–95  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

86 * @param key the key to remove
87 */
88const 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

Callers 2

groupRequestsFunction · 0.90
buildOptionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected