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

3.535.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

1,202,753

Version

3.535.0

License

Apache-2.0

Unpacked Size

21.8 kB

Total Files

15

Last publish

Collaborators

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