@aws-sdk/endpoint-cache
TypeScript icon, indicating that this package has built-in type declarations

3.693.0 • Public • Published

@aws-sdk/endpoint-cache

NPM version NPM downloads

An internal package

Usage

You probably shouldn't, at least directly.

EndpointCache

  • uses mnemonist/lru-cache for storing the cache.
  • the set operation stores milliseconds elapsed since the UNIX epoch in Expires param based on CachePeriodInMinutes provided in Endpoint.
  • the get operation returns all un-expired endpoints with their Expires values.
  • the getEndpoint operation returns a randomly selected un-expired endpoint.

Readme

Keywords

none

Package Sidebar

Install

npm i @aws-sdk/endpoint-cache

Weekly Downloads

2,363,532

Version

3.693.0

License

Apache-2.0

Unpacked Size

21.7 kB

Total Files

13

Last publish

Collaborators

  • mattsb42-aws
  • kuhe
  • amzn-oss
  • aws-sdk-bot
  • trivikr-aws