import type { StorageAdapter } from "./types"; export class MemoryStorage implements StorageAdapter { private data = new Map(); async get(key: string): Promise { return this.data.get(key) ?? null; } async set(key: string, value: string): Promise { this.data.set(key, value); } async delete(key: string): Promise { this.data.delete(key); } }