UNPKG

@bitblit/ratchet-aws

Version:

Common tools for use with AWS browser and node

16 lines (15 loc) 862 B
import { RuntimeParameterProvider } from './runtime-parameter-provider.js'; import { StoredRuntimeParameter } from './stored-runtime-parameter.js'; export declare class RuntimeParameterRatchet { private provider; private cache; constructor(provider: RuntimeParameterProvider); fetchParameter<T>(groupId: string, paramKey: string, defaultValue?: T, forceFreshRead?: boolean): Promise<T>; fetchAllParametersForGroup(groupId: string): Promise<Map<string, any>>; readUnderlyingEntry(groupId: string, paramKey: string): Promise<StoredRuntimeParameter>; readUnderlyingEntries(groupId: string): Promise<StoredRuntimeParameter[]>; storeParameter(groupId: string, paramKey: string, paramValue: any, ttlSeconds: number): Promise<StoredRuntimeParameter>; private static toCacheStoreKey; private addToCache; clearCache(): void; }