{"library":"memory-cache","type":"library","category":null,"description":"A simple in-memory cache for Node.js with support for TTL and expiration callbacks. Version 0.2.0 is stable with no recent releases; it uses setTimeout for expiration. Unlike more feature-rich solutions (e.g., node-cache, lru-cache), it offers a minimal API: put, get, del, clear, size, and import/export. Its constructor allows multiple isolated cache instances. Note that all operations are synchronous, and hits/misses are only tracked in debug mode.","language":"javascript","status":"maintenance","version":"0.2.0","tags":["javascript","cache","ram","simple","storage"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install memory-cache","imports":["const cache = require('memory-cache');","const { Cache } = require('memory-cache');","cache.importJson(json, { skipDuplicates: true });"]},{"cmd":"yarn add memory-cache","imports":[]},{"cmd":"pnpm add memory-cache","imports":[]}],"homepage":"https://github.com/ptarjan/node-cache#readme","github":"git://github.com/ptarjan/node-cache","docs":null,"changelog":null,"pypi":null,"npm":"memory-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}