(
private ttl: number,
private maxEntries = 200
)
| 3 | private cache = new Map<string, { data: T; fetchedAt: number }>(); |
| 4 | |
| 5 | constructor( |
| 6 | private ttl: number, |
| 7 | private maxEntries = 200 |
| 8 | ) {} |
| 9 | |
| 10 | get(key: string): T | null { |
| 11 | const entry = this.cache.get(key); |
nothing calls this directly
no outgoing calls
no test coverage detected