Creates a memoized version of a function with an optional
LRU (Least Recently Used) cache. The memoized function uses a cache to
store computed values. Depending on the maxSize option, it will use
either a singleton cache (for a single entry) or an
LRU cache (for multiple entries).
Note: This function was previously known as defaultMemoize.
Creates a memoized version of a function with an optional LRU (Least Recently Used) cache. The memoized function uses a cache to store computed values. Depending on the
maxSize
option, it will use either a singleton cache (for a single entry) or an LRU cache (for multiple entries).Note: This function was previously known as
defaultMemoize
.