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