Memoizee v0.4.17 is a complete, high-performance memoization library for JavaScript, originally derived from es5-ext. It supports any type of function arguments without serialization, works with synchronous, promise-returning, and Node.js callback-style functions, and offers configurable cache strategies including LRU, timeout-based expiration, WeakMap-based garbage collection, and manual cleanup. It provides primitive mode for fast string-keyed caching, reference counter mode, and argument resolvers. Released under an ISC license with no dependencies, it has a stable, infrequent release cadence and is suitable for Node >=0.12 and browsers via bundlers. It differs from alternatives like lodash.memoize or moize in its extensive configuration options, promise support, and built-in profiling tools.
npm install memoizeeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows importing memoizee, memoizing a function with a 60-second TTL, cache hit, and manual cache clearing.
Ensure you run npm install memoizee and require/import from 'memoizee'.
Wrap your function body to avoid synchronous throws; use async functions that return rejected promises instead.
Use const memoize = require('memoizee'); (no .default). For ESM: import memoize from 'memoizee'.Use normal mode (default) for non-primitive arguments, or pass custom resolvers.
Use import profile from 'memoizee/profile' or the standalone package.
npm uninstall memoize && npm install memoizee Then change require/import to 'memoizee'.
Change `import { memoize } from 'memoizee'` to `import memoize from 'memoizee'`Ensure memoized function is correctly created: const m = memoize(fn); m('arg'); m.clear();Check options object: valid keys include length, maxAge, max, primitive, promise, etc.
No dependency data recorded yet.