@harnessio/ff-javascript-client-sdk
Version:
Basic library for integrating CF into javascript applications.
10 lines (9 loc) • 566 B
TypeScript
import type { CacheOptions, Evaluation, Target } from './types';
export interface GetCacheResponse {
loadFromCache: () => Promise<Evaluation[]>;
saveToCache: (evaluations: Evaluation[]) => Promise<void>;
updateCachedEvaluation: (evaluation: Evaluation) => Promise<void>;
removeCachedEvaluation: (flagIdentifier: string) => Promise<void>;
}
export declare function getCache(seed: string, cacheOptions?: CacheOptions): Promise<GetCacheResponse>;
export declare function createCacheIdSeed(target: Target, apiKey: string, config?: CacheOptions): string;