Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • EndpointCache

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private Readonly cache

cache: LRUCache<string, EndpointWithExpiry[]>

Methods

clear

  • clear(): void

delete

  • delete(key: string): void

get

getEndpoint

  • getEndpoint(key: string): string

has

  • has(key: string): boolean

set

  • set(key: string, endpoints: Endpoint[]): void
  • Stores the endpoints passed for the key in cache. If not defined, uses empty string for the Address in endpoint. If not defined, uses one minute for CachePeriodInMinutes in endpoint. Stores milliseconds elapsed since the UNIX epoch in Expires param based on value provided in CachePeriodInMinutes.

    Parameters

    Returns void