lrufy
Version:
A feature-rich LRU cache implementation with TTL support, custom sizing, and event hooks
27 lines (23 loc) • 560 B
text/typescript
/**
* LRUfy - A feature-rich LRU cache implementation
*
* Features:
* - Capacity management (max items or max total size)
* - Time-to-live (TTL) support for cache items
* - LRU eviction policy
* - Serialization support
* - Event hooks for item disposal
* - Stale item handling
*/
export {
LRUCache,
LRUCacheOptions,
ItemOptions,
SizeCalculator,
DisposeCallback,
CacheStats,
EvictionReason,
} from "./lru-cache";
export { Node, DoublyLinkedList } from "./linked-list";
import { LRUCache } from "./lru-cache";
export default LRUCache;