MCPcopy Create free account
hub / github.com/code100x/cms / evict

Method evict

src/lib/cache/in-memory-cache.ts:49–53  ·  view source on GitHub ↗
(type: string, args: string[])

Source from the content-addressed store, hash-verified

47 }
48
49 async evict(type: string, args: string[]): Promise<null> {
50 const key = this.generateKey(type, args);
51 this.inMemoryDb.delete(key);
52 return null;
53 }
54
55 private generateKey(type: string, args: string[]): string {
56 return `${type}:${JSON.stringify(args)}`;

Callers

nothing calls this directly

Calls 1

generateKeyMethod · 0.95

Tested by

no test coverage detected