{"library":"with-simple-cache","type":"library","category":null,"description":"A wrapper pattern for adding caching to synchronous and asynchronous functions in Node.js and browser environments. Version 0.16.0 ships TypeScript types and supports both sync and async caches via a clean functional API. Key differentiators: automatic cache key derivation from function arguments, pluggable cache stores (in-memory, on-disk, localStorage), and a promise-deduplication layer for async operations. Compared to alternatives like p-memoize or moize, this library enforces a simpler wrapper pattern and requires explicit cache configuration. Release cadence is irregular, with maintenance mode likely.","language":"javascript","status":"active","version":"0.16.0","tags":["javascript","cache","wrapper","functional","function","simple","browser","browser cache","nodejs","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install with-simple-cache","imports":["import { withSimpleCache } from 'with-simple-cache'","import { withSimpleCacheAsync } from 'with-simple-cache'","import type { Cache } from 'with-simple-cache'"]},{"cmd":"yarn add with-simple-cache","imports":[]},{"cmd":"pnpm add with-simple-cache","imports":[]}],"homepage":"https://github.com/ehmpathy/with-simple-cache","github":"https://github.com/ehmpathy/with-simple-cache","docs":null,"changelog":null,"pypi":null,"npm":"with-simple-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}