// Minimal in-memory cache for provider credential caching (Azure Entra, AWS STS, etc.) const cache = new Map(); class SimpleCache { async get(key: string, _options?: any): Promise { const entry = cache.get(key); if (!entry) return null; if (Date.now() > entry.expiresAt) { cache.delete(key); return null; } return entry.value as T; } async set(key: string, value: any, options?: { ttl?: number }): Promise { const ttl = options?.ttl ?? 300; // default 5 minutes cache.set(key, { value, expiresAt: Date.now() + ttl * 1000 }); } } const instance = new SimpleCache(); export function requestCache(_env?: any): SimpleCache { return instance; }