feat: Implement generic TTL cache utility

This commit is contained in:
Aleksander Grygier 2026-01-27 13:10:14 +01:00
parent b04cd272a8
commit 9f9fccd55d
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,4 @@
const DEFAULT_CACHE_TTL_MS = 5 * 60 * 1000;
const DEFAULT_CACHE_MAX_ENTRIES = 100;
import { DEFAULT_CACHE_TTL_MS, DEFAULT_CACHE_MAX_ENTRIES } from '$lib/constants/cache';
/**
* TTL Cache - Time-To-Live cache implementation for memory optimization

View File

@ -119,3 +119,6 @@ export { getFaviconUrl } from './favicon';
// Agentic content parsing utilities
export { parseAgenticContent, type AgenticSection } from './agentic';
// Cache utilities
export { TTLCache, ReactiveTTLMap, type TTLCacheOptions } from './cache-ttl';