import type { IRequestRepository } from '../core/interfaces/IRequestRepository'; import type { SpeedTestContext } from '../core/domain/SpeedTestTypes'; export class InMemoryRequestRepository implements IRequestRepository { private readonly _storage: Record = {}; save(id: string, context: SpeedTestContext): void { this._storage[id] = context; } get(id: string): SpeedTestContext | undefined { return this._storage[id]; } delete(id: string): void { delete this._storage[id]; } }