@softchef/cdk-iot-device-management
Version:
IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.
18 lines (11 loc) • 746 B
Markdown
# @aws-sdk/endpoint-cache
[](https://www.npmjs.com/package/@aws-sdk/endpoint-cache)
[](https://www.npmjs.com/package/@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.