Setting up ConcurrentCache is simple.
  1. Add the ConcurrentCache dll to your project or website
  2. Add a reference to the cache provider in web.config.
  3. In web.config, select the mode you want ConcurrentCache to run in.
  4. Add the OutputCache tag to your ASPX pages or user controls

Run Modes are
  • Memory
  • Files
  • Compressed
  • Auto


Adding the provider to web.config looks like:

<caching>
<outputCache defaultProvider="ConcurrentCache">
<providers>
<add name="ConcurrentCache" type="ConcurrentCache.ConcurrentCache"/>
</providers>
</outputCache>
</caching>

Setting the mode:

<appSettings>
<add key="CacheMode" value="Memory"/>
</appSettings>

Setting output cache on your page

<%@ OutputCache VaryByParam="none" Duration="30" %>

Last edited Jun 5, 2010 at 7:54 AM by InvertedSoftware, version 2

Comments

dotnetchris Jun 16, 2010 at 12:42 PM 
Could we get some more information on the implications of Run Modes Files, Compressed, Auto and how Memory is different than the AspNetInternalProvider