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

Method constructor

packages/db/Cache.ts:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 private delegate: ICache;
10
11 private constructor() {
12 if (redisUrl) {
13 this.delegate = RedisCache.getInstance(redisUrl);
14 } else {
15 this.delegate = InMemoryCache.getInstance();
16 }
17 }
18
19 static getInstance(): Cache {
20 if (!this.instance) {

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected