UNPKG

lrufy

Version:

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

9 lines (7 loc) 210 B
import { LRUCache } from "../src/lru-cache"; describe("LRUCache", () => { it("should create a cache with default options", () => { const cache = new LRUCache(); expect(cache.size).toBe(0); }); });