{"library":"nano-cache","type":"library","category":null,"description":"nano-cache is a lightweight in-memory cache for Node.js (version 1.1.2, last updated 2018). It provides TTL, access-limit, and memory-limit based expiration with LRU eviction, compressed storage for higher capacity, and event emitters for cache operations. Unlike larger caches like node-cache or lru-cache, it focuses on simplicity and supports per-item TTL/limit overrides. It requires JSON-serializable values and emits events on get/set/del/clear. No breaking changes have been reported, but the package is in maintenance mode.","language":"javascript","status":"maintenance","version":"1.1.2","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install nano-cache","imports":["const cache = require('nano-cache');","const NanoCache = require('nano-cache');\nconst cache = new NanoCache();","const NanoCache = require('nano-cache');\nconst bytes = 100 * NanoCache.SIZE.MB;"]},{"cmd":"yarn add nano-cache","imports":[]},{"cmd":"pnpm add nano-cache","imports":[]}],"homepage":"https://github.com/akhoury/nano-cache#readme","github":"https://github.com/akhoury/nano-cache","docs":null,"changelog":null,"pypi":null,"npm":"nano-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}