{"library":"co-cache","type":"library","category":null,"description":"A middleware-like caching library for async functions (including AsyncFunction and Promise-based) that caches results in Redis using ioredis. Version 4.1.0 is stable, with regular updates. It wraps any async function, caching its return value based on a configurable key (defaults to function name) and TTL. Supports custom get/set logic, conditional caching, manual cache management (get, set, clear, raw), and automatic serialization via JSON. Differentiators: simple API, first-class ioredis support, and fine-grained cache control per function invocation.","language":"javascript","status":"active","version":"4.1.0","tags":["javascript","co","cache","Promise","AsyncFunction","async","await"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install co-cache","imports":["import cache from 'co-cache'","const cache = require('co-cache')(defaultConfig);"]},{"cmd":"yarn add co-cache","imports":[]},{"cmd":"pnpm add co-cache","imports":[]}],"homepage":"https://github.com/nswbmw/co-cache#readme","github":"https://github.com/nswbmw/co-cache","docs":null,"changelog":null,"pypi":null,"npm":"co-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}