import { RedisCache } from "./redis-client"; // Redis-based cache for users shared across all server instances const cache = new RedisCache("user", 30 * 60); // 30 minutes TTL export const userCache = { get: (key: string): Promise => cache.get(key), set: (key: string, value: any): Promise => cache.set(key, value), delete: (key: string): Promise => cache.delete(key), };