@httpc/kit
Version:
httpc toolbox for building function-based API with minimal code and end-to-end type safety
15 lines (14 loc) • 488 B
TypeScript
import { ICache } from "./types";
export type WaterfallCacheOptions = {
providers: ICache[];
};
export declare class WaterfallCache<V = any> implements ICache<V> {
readonly providers: ICache[];
constructor(options: WaterfallCache);
keys(): IterableIterator<string>;
has(key: string): boolean;
get<T extends V = V>(key: string): T | undefined;
set<T extends V = V>(key: string, value: T): void;
delete(key: string): void;
clear(): void;
}