Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AmazingAng/PolyWorld
/
Class
src/lib/apiCache.ts:2–2 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/** Keyed in-memory cache with TTL and max entry limit. */
2
export
class
ApiCache<T> {
3
private cache =
new
Map<string, { data: T; fetchedAt: number }>();
4
5
constructor(
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected