• memorize function and limit the caching memory used for it, through the use of LRU-scheme

    Type Parameters

    • K
    • V

    Parameters

    • min_capacity: number
    • max_capacity: number
    • fn: ((arg) => V)
        • (arg): V
        • Parameters

          • arg: K

          Returns V

    Returns ((arg) => V)

      • (arg): V
      • Parameters

        • arg: K

        Returns V

Generated using TypeDoc