@aws-sdk/endpoint-cache
Advanced tools
Comparing version 3.168.0 to 3.170.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13) | ||
**Note:** Version bump only for package @aws-sdk/endpoint-cache | ||
# [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09) | ||
@@ -8,0 +16,0 @@ |
export interface Endpoint { | ||
Address: string; | ||
CachePeriodInMinutes: number; | ||
Address: string; | ||
CachePeriodInMinutes: number; | ||
} |
import { Endpoint } from "./Endpoint"; | ||
export interface EndpointWithExpiry extends Pick<Endpoint, "Address"> { | ||
Expires: number; | ||
Expires: number; | ||
} | ||
export declare class EndpointCache { | ||
private readonly cache; | ||
constructor(capacity: number); | ||
getEndpoint(key: string): string | undefined; | ||
get(key: string): EndpointWithExpiry[] | undefined; | ||
set(key: string, endpoints: Endpoint[]): void; | ||
delete(key: string): void; | ||
has(key: string): boolean; | ||
clear(): void; | ||
private readonly cache; | ||
constructor(capacity: number); | ||
getEndpoint(key: string): string | undefined; | ||
get(key: string): EndpointWithExpiry[] | undefined; | ||
set(key: string, endpoints: Endpoint[]): void; | ||
delete(key: string): void; | ||
has(key: string): boolean; | ||
clear(): void; | ||
} |
export * from "./Endpoint"; | ||
export * from "./EndpointCache"; |
{ | ||
"name": "@aws-sdk/endpoint-cache", | ||
"version": "3.168.0", | ||
"version": "3.170.0", | ||
"scripts": { | ||
@@ -30,3 +30,3 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"concurrently": "7.0.0", | ||
"downlevel-dts": "0.7.0", | ||
"downlevel-dts": "0.10.1", | ||
"rimraf": "3.0.2", | ||
@@ -33,0 +33,0 @@ "typedoc": "0.19.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24407