MCPcopy Index your code
hub / github.com/BlockRunAI/ClawRouter / cmdCache

Function cmdCache

src/cli.ts:506–518  ·  view source on GitHub ↗
(port: number)

Source from the content-addressed store, hash-verified

504}
505
506async function cmdCache(port: number): Promise<void> {
507 try {
508 const data = (await queryProxy("/cache", port)) as Record<string, unknown>;
509 console.log(`\nCache Stats\n`);
510 for (const [key, value] of Object.entries(data)) {
511 console.log(` ${key}: ${JSON.stringify(value)}`);
512 }
513 console.log();
514 } catch {
515 console.error(`✗ Cannot connect to ClawRouter on port ${port}`);
516 process.exit(1);
517 }
518}
519
520/**
521 * `clawrouter setup` — finish OpenClaw integration after `npm install -g`.

Callers 1

mainFunction · 0.85

Calls 1

queryProxyFunction · 0.85

Tested by

no test coverage detected