{"library":"memoize-cache-decorator","type":"library","category":null,"description":"TypeScript decorator for memoizing class methods and getters with cache expiration and clearing support. Version 2.1.0, actively maintained. Supports Node.js and browsers. Differentiators: built-in TTL (time-to-live), two-level cache clearing (method-level and instance-level), custom resolver function, and TypeScript-first design. Lower overhead than libraries like lodash.memoize because it uses decorator syntax and integrates with class-based architecture. Can memoize async, static, and getter functions. Requires TypeScript >4.x and experimentalDecorators.","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","front-end","memoize","decorator","cache","clear","reset","timeout","ttl","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install memoize-cache-decorator","imports":["import { memoize } from 'memoize-cache-decorator'","import { clearFunction } from 'memoize-cache-decorator'","import { clearInstance } from 'memoize-cache-decorator'"]},{"cmd":"yarn add memoize-cache-decorator","imports":[]},{"cmd":"pnpm add memoize-cache-decorator","imports":[]}],"homepage":"https://github.com/edwinm/memoize-cache-decorator#readme","github":"https://github.com/edwinm/memoize-cache-decorator","docs":null,"changelog":null,"pypi":null,"npm":"memoize-cache-decorator","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}