UNPKG

@sconedev/ai_toolkit

Version:

Simplify AI integration in web apps with local and offline model support

9 lines (8 loc) 197 B
import LRU from 'lru-cache'; const cache = new LRU({ max: 100 }); export function getCached(key) { return cache.get(key); } export function setCached(key, value) { cache.set(key, value); }