repletes - v1.1.0
    Preparing search index...

    Interface Entry<T>

    What a store holds. The windows travel with the value rather than living on the cache, so retention can be re-checked on the way out and a config change never silently reinterprets what is already written down.

    interface Entry<T> {
        freshFor: number;
        staleIfError: number;
        staleWhileRevalidate: number;
        storedAt: number;
        value: T;
    }

    Type Parameters

    • T

    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.

    storedAt: number

    Milliseconds, from the clock of whoever wrote the entry.

    value: T