feat: Implement generic TTL cache utility
This commit is contained in:
parent
b04cd272a8
commit
9f9fccd55d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in New Issue