UNPKG

lrufy

Version:

A feature-rich LRU cache implementation with TTL support, custom sizing, and event hooks

23 lines (22 loc) 1.13 kB
"use strict"; /** * 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 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.DoublyLinkedList = exports.Node = exports.EvictionReason = exports.LRUCache = void 0; var lru_cache_1 = require("./lru-cache"); Object.defineProperty(exports, "LRUCache", { enumerable: true, get: function () { return lru_cache_1.LRUCache; } }); Object.defineProperty(exports, "EvictionReason", { enumerable: true, get: function () { return lru_cache_1.EvictionReason; } }); var linked_list_1 = require("./linked-list"); Object.defineProperty(exports, "Node", { enumerable: true, get: function () { return linked_list_1.Node; } }); Object.defineProperty(exports, "DoublyLinkedList", { enumerable: true, get: function () { return linked_list_1.DoublyLinkedList; } }); const lru_cache_2 = require("./lru-cache"); exports.default = lru_cache_2.LRUCache;