{"library":"lru-memoize","type":"library","category":null,"description":"`lru-memoize` is a utility library for JavaScript and TypeScript that provides simple memoization for pure functions using an LRU (Least Recently Used) cache. It helps optimize performance by storing results of expensive function calls and returning the cached result when the same inputs occur again. The current stable version is 1.1.0, released recently with bug fixes and explicit TypeScript/Flow support. The package features a configurable cache limit, custom equality comparison functions, and an option for deep object comparison for arguments, making it flexible for various use cases. Its primary differentiation lies in its minimalist approach to LRU caching for functions, focusing on purity and avoiding side effects. The release cadence appears to be driven by bug fixes and improvements rather than frequent new features, ensuring stability over rapid, breaking changes.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","memoize","cache","caching","es7","decorator","typescript"],"install":[{"cmd":"npm install lru-memoize","imports":["import memoize from 'lru-memoize';","const memoize = require('lru-memoize');"]},{"cmd":"yarn add lru-memoize","imports":[]},{"cmd":"pnpm add lru-memoize","imports":[]}],"homepage":null,"github":"https://github.com/erikras/lru-memoize","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/lru-memoize","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/lru-memoize/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}