Function cachedDataFetcherWithExpiration

  • Type Parameters

    • T

    Parameters

    • __namedParameters: {
          expiration?: number;
          fetcher: (() => Promise<T>);
          storageKey: string;
      }
      • Optional expiration?: number
      • fetcher: (() => Promise<T>)
          • (): Promise<T>
          • Returns Promise<T>

      • storageKey: string

    Returns Promise<T>