repletes - v1.1.0
    Preparing search index...

    Interface Windows

    Every duration in repletes is milliseconds, measured against the clock the Cache was constructed with. There are no defaults: freshness is a property of your data, so all three numbers are required.

    interface Windows {
        freshFor: number;
        staleIfError: number;
        staleWhileRevalidate: number;
    }

    Hierarchy (View Summary)

    Index
    freshFor: number

    How long a stored value answers a read outright.

    staleIfError: number

    How long past freshFor a value is served, but only if the action failed.

    staleWhileRevalidate: number

    How long past freshFor a value is served while a refresh runs behind it.