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
An internal package
Usage
You probably shouldn't, at least directly.
EndpointCache
- uses
mnemonist/lru-cachefor storing the cache. - the
setoperation stores milliseconds elapsed since the UNIX epoch in Expires param based on CachePeriodInMinutes provided in Endpoint. - the
getoperation returns all un-expired endpoints with their Expires values. - the
getEndpointoperation returns a randomly selected un-expired endpoint.