• Determines if a recomputation should be done early based on the expiry time, the time it took to compute the value, and the beta factor

    See

    https://cseweb.ucsd.edu//~avattani/papers/cache_stampede.pdf

    Returns

    true if recomputation should be done, false otherwise

    Parameters

    • expiry: number

      The expiry time in milliseconds since the epoch

    • delta: number

      The required time to recompute the value in milliseconds

    • beta: number = 1

      The beta factor. A value greater than 1 favors earlier recomputation

    Returns boolean

Generated using TypeDoc