UNPKG

@aws-sdk/middleware-sdk-s3

Version:

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-sdk-s3/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-sdk-s3) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-sdk-s3.svg)](https://www.npmjs.com/package/@

17 lines (16 loc) 565 B
import { S3ExpressIdentityCacheEntry } from "./S3ExpressIdentityCacheEntry"; /** * @internal * * Stores identities by key. */ export declare class S3ExpressIdentityCache { private data; private lastPurgeTime; static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS: number; constructor(data?: Record<string, S3ExpressIdentityCacheEntry>); get(key: string): undefined | S3ExpressIdentityCacheEntry; set(key: string, entry: S3ExpressIdentityCacheEntry): S3ExpressIdentityCacheEntry; delete(key: string): void; purgeExpired(): Promise<void>; }