@sixbell-telco/sdk
Version:
A collection of reusable components designed for use in Sixbell Telco Angular projects
12 lines (11 loc) • 542 B
TypeScript
import type { RuntimeConfigLoadResult, RuntimeConfigStoreContract } from './types';
export declare class RuntimeConfigStore<T> implements RuntimeConfigStoreContract<T> {
private readonly cacheName;
private readonly db?;
private readonly fallbackStore;
constructor(cacheName: string, appId?: string, indexedDbName?: string);
get(key: string): Promise<RuntimeConfigLoadResult<T> | null>;
set(key: string, value: RuntimeConfigLoadResult<T>): Promise<void>;
remove(key: string): Promise<void>;
private buildKey;
}