PrefixingKeyValueCache.d.ts 493 B

12345678910
  1. import { KeyValueCache, KeyValueCacheSetOptions } from './KeyValueCache';
  2. export 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