{"library":"cached","type":"library","category":null,"description":"A simple caching library for Node.js (v6.1.0) inspired by the Play cache API, designed to prefer serving stale data over causing a stampede on the backend. Supports both promise- and callback-based usage. Built-in backends: in-memory (default) and memcached (via memcached-elasticache). Released by Groupon, follows semantic versioning. Key differentiators: minimal interface (no multi-get, no deletion), stale-while-revalidate bias, named caches with automatic key prefixes.","language":"javascript","status":"active","version":"6.1.0","tags":["javascript","memcached","stampede","cache"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install cached","imports":["const cached = require('cached');","const cached = require('cached');\ncached.deferred(callbackFn);","const cached = require('cached');\nconst cache = cached.createCache(options);"]},{"cmd":"yarn add cached","imports":[]},{"cmd":"pnpm add cached","imports":[]}],"homepage":"https://github.com/groupon/node-cached","github":"https://github.com/groupon/node-cached","docs":null,"changelog":null,"pypi":null,"npm":"cached","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}