Logos DX
    Preparing search index...

    Interface CacheEntry<T>

    Cache entry returned by SingleFlight with computed staleness.

    interface CacheEntry<T> {
        expiresAt: number;
        isStale: boolean;
        staleAt?: number;
        value: T;
    }

    Type Parameters

    • T

      The type of the cached value

    Index

    Properties

    expiresAt: number

    Timestamp when the entry expires (ms since epoch)

    isStale: boolean

    Whether the entry is stale (past staleAt but before expiresAt)

    staleAt?: number

    Timestamp when the entry becomes stale for SWR (ms since epoch)

    value: T

    The cached value