# GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration.UseCacheDataStorage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Web_Viewer_ReportViewerConfiguration_UseCacheDataStorage_" data-uid="GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration.UseCacheDataStorage*">UseCacheDataStorage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Web_Viewer_ReportViewerConfiguration_UseCacheDataStorage_" data-uid="GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration.UseCacheDataStorage*"></a>
<h4 id="GrapeCity_ActiveReports_Web_Viewer_ReportViewerConfiguration_UseCacheDataStorage_System_Action_GrapeCity_ActiveReports_Web_Viewer_CacheDataSettings__" data-uid="GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration.UseCacheDataStorage(System.Action{GrapeCity.ActiveReports.Web.Viewer.CacheDataSettings})">UseCacheDataStorage(Action&lt;CacheDataSettings&gt;)</h4>
<div class="markdown level1 summary"><p>Uses an action to cache the data using the provided settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ReportViewerConfiguration UseCacheDataStorage(Action&lt;CacheDataSettings&gt; settings)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Web.Viewer.CacheDataSettings.html">CacheDataSettings</a>&gt;</td>
      <td><span class="parametername">settings</span></td>
      <td><p>The action that is caching the data settings.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration.html">ReportViewerConfiguration</a></td>
      <td><p>The current <a class="xref" href="GrapeCity.ActiveReports.Web.Viewer.ReportViewerConfiguration.html">ReportViewerConfiguration</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Web_Viewer_ReportViewerConfiguration_UseCacheDataStorage_System_Action_GrapeCity_ActiveReports_Web_Viewer_CacheDataSettings___examples">Examples</h5>
<pre><code class="lang-csharp">Action&lt;CacheDataSettings&gt; cacheAction = (settings) =&gt;
{
    // Your implementation of caching the settings.
};

app.UseReportViewer(config =&gt;
{
    config.UseCacheDataStorage(cacheAction);
});</code></pre>

</div>
