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

Class

src/lib/apiCache.ts:32–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31/** Single-value in-memory cache with TTL. */
32export class SingleCache<T> {
33 private entry: { data: T; fetchedAt: number } | null = null;
34
35 constructor(private ttl: number) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected