import type { KeyValueStorageAdapter } from "../types"; export class InMemoryStorageAdapter implements KeyValueStorageAdapter { private readonly store = new Map(); async getItem(key: string): Promise { return this.store.get(key) ?? null; } async setItem(key: string, value: string): Promise { this.store.set(key, value); } async removeItem(key: string): Promise { this.store.delete(key); } }