Skip to content

cime/NHibernate.Caches.SysCache5

 
 

Repository files navigation

NHibernate.Caches.SysCache5

NHibernate 2nd level cache provider that uses System.Runtime.Caching.MemoryCache.

  • Supports SqlChangeMonitor
  • Supports HostFileChangeMonitor
  • Does not depend on System.Web.dll

How to use it (see also NHibernate.Caches.SysCache2 from NHibernate Contrib project):

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  
  <configSections>
    <section name="syscache5" type="NHibernate.Caches.SysCache5.SysCacheSection, NHibernate.Caches.SysCache5" />
  </configSections>
  
  <syscache5>
    <cacheRegion name="DefaultCache" relativeExpiration="3600">
      <dependencies>
        <commands>
          <add name="test1" command="select Id from dbo.Test" />
        </commands>
        <files>
          <add name="test1" path="c:/tmp/test.txt" />
          <add name="test2" path="Test.txt"/>
        </files>
      </dependencies>
    </cacheRegion>
  </syscache5>
  
</configuration>

About

NHibernate.Caches.SysCache5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.9%
  • Batchfile 0.1%