@aws-sdk/endpoint-cache
v3.972.5
Published
[](https://www.npmjs.com/package/@aws-sdk/endpoint-cache) [](https://www.npmjs.com/package/@aws-sdk/e
Readme
@aws-sdk/endpoint-cache
:warning: Internal API :warning:
This is an internal package. That means this is used as a dependency for other, public packages, but should not be taken directly as a dependency in your application's
package.json.
If you are updating the version of this package, for example to bring in a bug-fix, you should do so by updating your application lockfile with e.g.
npm up @scope/packageor equivalent command in another package manager, rather than taking a direct dependency.
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.
