import { LRUCache } from "lru-cache"; import { SearchSummary } from "../types.js"; const cache = new LRUCache({ max: 200, ttl: 1000 * 60 * 10 }); export function getCached(query: string) { return cache.get(query); } export function setCached(query: string, summary: SearchSummary) { cache.set(query, summary); }