{"library":"lru-ttl-cache","type":"library","category":null,"description":"Fast LRU (Least Recently Used) and TTL (Time-To-Live) cache implementation with upsert and promise support. Current stable version is 2.4.8, actively maintained. Key differentiators: supports both LRU eviction and TTL expiration simultaneously, built-in upsert (insert or update) operations, and promise-based async value resolution. Lightweight, zero dependencies, TypeScript type definitions included. Suitable for in-memory caching in Node.js and browser environments where both access pattern and expiration control are needed.","language":"javascript","status":"active","version":"2.4.8","tags":["javascript","LRU","TTL","CACHE","Upsert","Promise"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install lru-ttl-cache","imports":["import { LRUTTLCache } from 'lru-ttl-cache'","const { LRUTTLCache } = require('lru-ttl-cache')","import type { LRUTTLCache } from 'lru-ttl-cache'"]},{"cmd":"yarn add lru-ttl-cache","imports":[]},{"cmd":"pnpm add lru-ttl-cache","imports":[]}],"homepage":"https://github.com/rafikalid/lru-ttl-cache#readme","github":"https://github.com/rafikalid/lru-ttl-cache","docs":null,"changelog":null,"pypi":null,"npm":"lru-ttl-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}