cdk-insights
Version:
AWS CDK security and cost analysis tool with AI-powered insights
5 lines (4 loc) • 500 B
TypeScript
import type { Cache, CacheOptions } from './memoization.types';
export declare const createCache: <T>(options?: CacheOptions) => Cache<T>;
export declare const memoize: <TArgs extends unknown[], TReturn>(functionToMemoize: (...args: TArgs) => TReturn, options?: CacheOptions) => ((...args: TArgs) => TReturn);
export declare const memoizeAsync: <TArgs extends unknown[], TReturn>(asyncFunction: (...args: TArgs) => Promise<TReturn>, options?: CacheOptions) => ((...args: TArgs) => Promise<TReturn>);