@graphql-mesh/plugin-http-cache
Version:
6 lines (5 loc) • 312 B
TypeScript
import type { KeyValueCache, MeshPlugin, YamlConfig } from '@graphql-mesh/types';
export interface HTTPCachePluginOptions extends YamlConfig.HTTPCachePlugin {
cache?: KeyValueCache;
}
export default function useHTTPCache<TContext>({ cache, matches, ignores, }: HTTPCachePluginOptions): MeshPlugin<TContext>;