Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.38 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.38 KB

Data Generic Cache

Build status Coverage Status Nuget version

Project Homepage: https://github.com/jeduardocosta/DataGenericCache

Available on NuGet as well: https://www.nuget.org/packages/DataGenericCache

###Description

A simple .NET library to cache data using custom providers.

###Available providers

  • Local memory
  • Local storage
  • Redis

###Configuration

Use custom config section named "dataGenericCacheSection" in configuration file.

<configSections>
	<section name="dataGenericCache" type="DataGenericCache.Settings.ConfigSections.CacheSection, DataGenericCache"/>
</configSections>

<dataGenericCache>
   <providers>
      <provider type="redis" address="remote-redis" port="6379" password="remote-redis-password" />
      <provider type="redis" address="local-redis" port="6379" />
      <provider type="localmemory" />
	  <provider type="localstorage" address="c:\\data" />
   </providers>
   <activeProviderCacheInMinutes value="60" />
</dataGenericCache>