MCPcopy Create free account
hub / github.com/chokcoco/iCSS / getInstance

Method getInstance

website/app/lib/cache.ts:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 private constructor() {}
12
13 static getInstance(): Cache {
14 if (!Cache.instance) {
15 Cache.instance = new Cache();
16 }
17 return Cache.instance;
18 }
19
20 set<T>(key: string, data: T, ttl: number = 5 * 60 * 1000): void {
21 this.cache.set(key, {

Callers 1

cache.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected