MCPcopy Create free account
hub / github.com/AmazingAng/PolyWorld / constructor

Method constructor

src/lib/apiCache.ts:35–35  ·  view source on GitHub ↗
(private ttl: number)

Source from the content-addressed store, hash-verified

33 private entry: { data: T; fetchedAt: number } | null = null;
34
35 constructor(private ttl: number) {}
36
37 get(): T | null {
38 if (!this.entry) return null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected