configcat-js
Version:
ConfigCat is a configuration as a service that lets you manage your features and configurations without actually deploying new code.
12 lines • 614 B
TypeScript
import type { IConfigCatCache, IConfigCatKernel } from "configcat-common";
export declare class LocalStorageCache implements IConfigCatCache {
private readonly storage;
static setup(kernel: IConfigCatKernel, localStorageGetter?: () => Storage | null): IConfigCatKernel;
constructor(storage: Storage);
set(key: string, value: string): void;
get(key: string): string | undefined;
}
export declare function getLocalStorage(): Storage | null;
export declare function toUtf8Base64(str: string): string;
export declare function fromUtf8Base64(str: string): string;
//# sourceMappingURL=Cache.d.ts.map