Documentation
    Preparing search index...
    • By default the cache does not start growing, the limit is infinite. To set otherwise, use the options object.

      Type Parameters

      • F extends (...args: never) => unknown
      • T = unknown

      Parameters

      • fn: F

        to be memoized

      • OptionalrawOptions: MemoizeOptions<F, T>

        options to customize cache behavior

      Returns Fn<Parameters<F>, ReturnType<F>>

      the memoized version of the function that will either return a cached value or call the original function when one does not exist.