Setting up ConcurrentCache is simple.
- Add the ConcurrentCache dll to your project or website
- Add a reference to the cache provider in web.config.
- In web.config, select the mode you want ConcurrentCache to run in.
- 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" %>