MCPcopy Create free account
hub / github.com/code100x/daily-code / evict

Method evict

apps/web/lib/cache/redis-cache.ts:41–45  ·  view source on GitHub ↗
(type: string, args: string[])

Source from the content-addressed store, hash-verified

39 }
40
41 async evict(type: string, args: string[]): Promise<null> {
42 const key = this.generateKey(type, args);
43 await this.client.del(key);
44 return null;
45 }
46
47 private generateKey(type: string, args: string[]): string {
48 return `${type}:${args.join(':')}`;

Callers

nothing calls this directly

Calls 1

generateKeyMethod · 0.95

Tested by

no test coverage detected