@comsma/apollo-datasource-grpc
Version:
gRPC implementation of Apollo Server's Datasources. Makes it possible to use Partial Query Caching
9 lines (8 loc) • 310 B
TypeScript
import { KeyValueCache } from '@apollo/utils.keyvaluecache';
declare class GRPCCache {
keyValueCache: KeyValueCache<string>;
constructor(keyValueCache: KeyValueCache<string>);
get(key: string): Promise<any>;
set(key: string, value: any, ttl: number): Promise<void>;
}
export default GRPCCache;