lru-memoize is a lightweight npm package that efficiently memoizes function calls using a Least Recently Used (LRU) cache. It enhances performance by storing and reusing the results of expensive function invocations based on their input arguments. Easily configure cache size and expiration policies for optimal memory management. This utility provides a simple yet effective way to boost application speed by reducing redundant computations. Perfect for optimizing computationally intensive functions with predictable input patterns.
The npm package lru-memoize had its initial releases (0.0.1, 0.0.2, and 1.0.0) in August 2015. Subsequent releases were sparse: 1.0.1 in March 2016, 1.0.2 in April 2017, and 1.1.0 in February 2019. Since then, there have been no further releases, with the last recorded month being August 2025 with zero releases. The package appears to be inactive.
lru-memoize npm package downloads show significant growth. From March 2024 to February 2025, downloads averaged around 50,000. Starting March 2025, downloads surged, peaking in July 2025 at 343,898. August 2025 data is incomplete but already shows 248,738 downloads.