{"library":"cache-func","type":"library","category":null,"description":"A minimal utility for caching synchronous function return values with optional TTL. Current stable version is 1.1.1. It has no dependencies and ships TypeScript declarations. Differentiates by extreme simplicity (single function, no complex keying or async support) vs. heavier memoization libraries like lodash.memoize or memoizee. Suitable for one-time or stale-while-revalidate caching patterns.","language":"javascript","status":"active","version":"1.1.1","tags":["javascript","cache","function","caching","memoization","memoize","cache function","cache function result","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install cache-func","imports":["import { cacheFunc } from 'cache-func'","const { cacheFunc } = require('cache-func')","import { cacheFunc } from 'cache-func'"]},{"cmd":"yarn add cache-func","imports":[]},{"cmd":"pnpm add cache-func","imports":[]}],"homepage":"https://github.com/lacherogwu/cache-func#readme","github":"https://github.com/lacherogwu/cache-func","docs":null,"changelog":null,"pypi":null,"npm":"cache-func","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}