{"library":"clean-cache","type":"library","category":null,"description":"Clean Cache is a minimal in-memory JavaScript cache with TTL (time-to-live) support, packaged as a single file with zero dependencies. Current stable version is 1.0.2. It offers a simple API with `add`, `retrieve`, `count`, and `tidy` methods, and validates keys to prevent null/undefined. Unlike larger caching libraries (e.g., node-cache, lru-cache), it keeps dependencies to a minimum and is fully tested. Suitable for small Node.js projects needing a lightweight, ephemeral cache.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","cache","caching","memory"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install clean-cache","imports":["const { Cache } = require('clean-cache')","import { Cache } from 'clean-cache'","const { Cache } = require('clean-cache')"]},{"cmd":"yarn add clean-cache","imports":[]},{"cmd":"pnpm add clean-cache","imports":[]}],"homepage":"https://github.com/kuper-adrian/clean-cache#readme","github":"https://github.com/kuper-adrian/clean-cache","docs":null,"changelog":null,"pypi":null,"npm":"clean-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}