UNPKG

498 BTypeScriptView Raw
1import type { KeyValueCache, KeyValueCacheSetOptions } from './KeyValueCache';
2export declare class PrefixingKeyValueCache<V = string> implements KeyValueCache<V> {
3 private wrapped;
4 private prefix;
5 constructor(wrapped: KeyValueCache<V>, prefix: string);
6 get(key: string): Promise<V | undefined>;
7 set(key: string, value: V, options?: KeyValueCacheSetOptions): Promise<void>;
8 delete(key: string): Promise<boolean | void>;
9}
10//# sourceMappingURL=PrefixingKeyValueCache.d.ts.map
\No newline at end of file