• Creates a simple memoized function with default settings

    Type Parameters

    • V

      Cache value type

    • Args extends any[]

      Function argument types

    Parameters

    • getValue: (args: Args) => V

    Returns {
        cache: LRUCache<string, V>;
        getKey: (args: Args) => string;
        getValue: (args: Args) => V;
        (...args: Args): NonNullable<V>;
    }