mem-cache

JSON →
library 0.0.5 ·javascript
verified Jun 7, 2026

Simple in-memory key/value cache for Node.js with automatic timeout-based expiration. Version 0.0.5 is the current stable release. The library provides basic cache operations (set, get, remove, clean) and emits events on entry expiration. It differs from more complex caching solutions (e.g., node-cache, lru-cache) by its minimal API and lack of advanced features like LRU eviction or TTL per entry. It is lightweight but offers configurable global timeout, optional timeout renewal on access, and the ability to disable timeout entirely.