Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Optional cacheExpiration

cacheExpiration: Date

Expiration Date time of the cached item. Default is current time plus 5 minutes.

Optional cacheType

cacheType: CacheType

cacheType defines where the response data should be stored. Default is IndexedBB. set cacheType storageType.INDEXEDDB/storageType.LOCALSTORAGE/storageType.SESSIONSTORAGE

Optional cacheable

cacheable: boolean

Flag to indicate if this datasource call should be cached.

options

options: RequestInit

Optional reload

reload: boolean

reload defines if the data should be retrive from the cache or not. Default is false. set reload to true when fresh data needs to fetched from the API

Optional retryCount

retryCount: number

retryCount defines the number of retry for datasource.execute() to be called if a failure is encountered.

Optional timeoutInMillis

timeoutInMillis: number

timeoutInMillis defines the timeout for API requests.

url

url: any

Methods

digest

  • digest(): Promise<string>

Protected digestData

  • digestData(...data: string[]): Promise<string>
  • This function generates a unique digest value for this input. Subclass needs to provide the unique data to be digested to ensure the uniqueness.

    Parameters

    • Rest ...data: string[]

      unique data to be digested.

    Returns Promise<string>

    Promise filled with hex string representation of the digested value. This hex string can be used for comparison and display.

Generated using TypeDoc