{"library":"cajache","type":"library","category":null,"description":"cajache is a minimalistic in-memory caching library for JavaScript/TypeScript (v2.0.2, released 2023). It provides a simple API to cache any asynchronous function result, with optional TTL support and configurable expiration check intervals. Unlike larger caching libraries like node-cache or lru-cache, cajache has zero dependencies and is very lightweight (~1KB minzipped). Its key differentiator is the `.use()` method that automatically handles cache miss/miss logic, reducing boilerplate. The library supports persistent (no TTL) and time-based caching, multiple instances, and path-based caching for nested results. It ships TypeScript definitions.","language":"javascript","status":"active","version":"2.0.2","tags":["javascript","js","node","cache","caching","save","memcached","memory","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install cajache","imports":["import cajache from 'cajache'","import { Cajache } from 'cajache'","const cajache = require('cajache')"]},{"cmd":"yarn add cajache","imports":[]},{"cmd":"pnpm add cajache","imports":[]}],"homepage":"https://github.com/Icaruk","github":"https://github.com/Icaruk/cajache","docs":null,"changelog":null,"pypi":null,"npm":"cajache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}