UNPKG

476 BTypeScriptView Raw
1export interface KeyValueCacheSetOptions {
2 ttl?: number | null;
3}
4export interface KeyValueCache<V = string> {
5 get(key: string): Promise<V | undefined>;
6 set(key: string, value: V, options?: KeyValueCacheSetOptions): Promise<void>;
7 delete(key: string): Promise<boolean | void>;
8}
9export interface TestableKeyValueCache<V = string> extends KeyValueCache<V> {
10 flush?(): Promise<void>;
11 close?(): Promise<void>;
12}
13//# sourceMappingURL=KeyValueCache.d.ts.map
\No newline at end of file