Type Alias WithCacheDetails

WithCacheDetails: {
    cached: boolean;
    cachedFor: number | null;
    source: WithCacheSource;
}

Type declaration

  • cached: boolean

    Whether the data was cached

  • cachedFor: number | null
    • If cached is true, the time in milliseconds the data was cached for
    • If cached is false, the remaining time in milliseconds until the cache expires
  • source: WithCacheSource

    Source of the data