You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The persisted document handler does not provide caching by default. You may implement your own caching mechanism
927
+
within the <codeclass="language-text">GetQueryAsync</code> method to cache the query strings based on the document identifier. Alternatively, you
928
+
may add the <codeclass="language-text">.UseMemoryCache()</code> method from the <codeclass="language-text">GraphQL.MemoryCache</code> package to enable in-memory caching. Be sure
929
+
to call <codeclass="language-text">UseMemoryCache</code> before calling <codeclass="language-text">UsePeristedDocuments</code> to ensure that the cache is used.</p>
930
+
<divclass="gatsby-highlight" data-language="csharp"><preclass="language-csharp"><codeclass="language-csharp">services<spanclass="token punctuation">.</span><spanclass="token function">AddGraphQL</span><spanclass="token punctuation">(</span>b <spanclass="token operator">=></span> b
0 commit comments