Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IUtilitiesApi

Helpful Utilities

Hierarchy

  • IUtilitiesApi

Index

Methods

getCache

  • getCache<T>(maxSize?: number, expirationTimeInSeconds?: number): IExpirationCache<T>
  • preview

    This API is in preview and not ready for production use. Expect breaking changes in the future. Returns an instance of IExpirationCache to be used freely by caller.

    Type parameters

    • T

    Parameters

    • Optional maxSize: number

      Max size of the cache. Default is 0.

    • Optional expirationTimeInSeconds: number

      The longest amount of time a cache item will stay in the cache. Default is 120 seconds.

    Returns IExpirationCache<T>

getHttpClient

  • preview

    This API is in preview and not ready for production use. Expect breaking changes in the future. Returns an instance of IHttpClient to be used freely by caller.

    Parameters

    • baseUrl: string

      The shared URL for HTTP Requests

    Returns IHttpClient