title: Configuring System.Runtime.Caching in appSettings.json
body: <p>I'm trying to configure <code>System.Runtime.Caching.MemoryCache</code> in an Asp.NET Core 2.1 application running on the full .NET Framework 4.7.</p>
  
  <p>In another non Asp.NET Core application i configure this in the <code>Web.config</code>, like this:</p>
  
  <pre><code>&lt;system.runtime.caching&gt;
    &lt;memoryCache&gt;
      &lt;namedCaches&gt;
        &lt;add name="default" cacheMemoryLimitMegabytes="0" physicalMemoryLimitPercentage="0" pollingInterval="00:02:00" /&gt;
      &lt;/namedCaches&gt;
    &lt;/memoryCache&gt;
  &lt;/system.runtime.caching&gt;
  </code></pre>
  
  <p>However, in the Asp.NET Core 2.1 application I only have <code>appsetting.json</code>. How does one configure <code>System.Runtime.Caching.MemoryCache</code> in Asp.NET Core 2.1?</p>