JSPM

  • Created
  • Published
  • Downloads 4314692
  • Score
    100M100P100Q278458F
  • License Apache-2.0

Package Exports

  • @aws-sdk/endpoint-cache
  • @aws-sdk/endpoint-cache/dist-cjs/index.js
  • @aws-sdk/endpoint-cache/dist-es/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aws-sdk/endpoint-cache) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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