@aws-sdk/endpoint-cache
v3.723.0
Published
[](https://www.npmjs.com/package/@aws-sdk/endpoint-cache) [](https://www.npmjs.com/package/@aws-sdk/e
Downloads
11,665,710
Keywords
Readme
@aws-sdk/endpoint-cache
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.