MCPcopy Create free account
hub / github.com/bitpay/bitcore / clearCache

Function clearCache

packages/bitcore-cli/src/commands/clearcache.ts:20–27  ·  view source on GitHub ↗
(args: CommonArgs)

Source from the content-addressed store, hash-verified

18}
19
20export async function clearCache(args: CommonArgs) {
21 const { wallet, opts } = args;
22 if (opts.command) {
23 Object.assign(opts, command(args));
24 }
25 await wallet.client.clearCache({ tokenAddress: opts.tokenAddress });
26 prompt.log.success('Cache cleared.');
27};

Callers

nothing calls this directly

Calls 2

clearCacheMethod · 0.80
commandFunction · 0.70

Tested by

no test coverage detected