memoize-cache-decorator

JSON →
library 2.1.0 ·javascript
verified Jun 7, 2026

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.