PersistentNodeCache

JSON →
library 1.2.0 ·javascript
verified Jun 7, 2026

A lightweight persistent in-memory cache library (v1.2.0) that extends node-cache with disk persistence and crash recovery. It periodically writes the full cache to disk and logs every write command in an append-only file, minimizing data loss on restart. Offers customizable serializers (default JSON) and automatic restoration on re-initialization. Compared to alternatives like persistent-cache, it provides far higher set throughput (623,668 ops/sec vs 550 ops/sec) while maintaining fast gets (21M+ ops/sec). Released on npm, actively maintained, ships TypeScript definitions.