{"library":"persistent-node-cache","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.2.0","tags":["javascript","fast","persistent","cache","caching","node","nodejs","recovery","restore","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install persistent-node-cache","imports":["import { PersistentNodeCache } from 'persistent-node-cache'","import { CacheSerializer } from 'persistent-node-cache'","const { PersistentNodeCache } = require('persistent-node-cache')"]},{"cmd":"yarn add persistent-node-cache","imports":[]},{"cmd":"pnpm add persistent-node-cache","imports":[]}],"homepage":"https://github.com/kwertop/persistent-node-cache#readme","github":"https://github.com/kwertop/persistent-node-cache","docs":null,"changelog":null,"pypi":null,"npm":"persistent-node-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}