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

Method getInstance

apps/web/lib/cache/redis-cache.ts:13–19  ·  view source on GitHub ↗
(redisUrl: string)

Source from the content-addressed store, hash-verified

11 }
12
13 static getInstance(redisUrl: string): RedisCache {
14 if (!this.instance) {
15 this.instance = new RedisCache(redisUrl);
16 }
17
18 return this.instance;
19 }
20
21 async set(
22 type: string,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected