federation/gateway/node_modules/apollo-server-caching/dist/PrefixingKeyValueCache.d.ts
2020-11-14 16:43:58 +01:00

10 lines
No EOL
493 B
TypeScript

import { KeyValueCache, KeyValueCacheSetOptions } from './KeyValueCache';
export declare class PrefixingKeyValueCache<V = string> implements KeyValueCache<V> {
private wrapped;
private prefix;
constructor(wrapped: KeyValueCache<V>, prefix: string);
get(key: string): Promise<V | undefined>;
set(key: string, value: V, options?: KeyValueCacheSetOptions): Promise<void>;
delete(key: string): Promise<boolean | void>;
}
//# sourceMappingURL=PrefixingKeyValueCache.d.ts.map