Hi,
I'm trying to use NH3 with syscache 2nd level provider.
1) I've setup caching on the session provider:
FluentConfiguration fluentConfiguration = Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2005
.ConnectionString(c => c.Is(connectionString))
.*Cache(c =>
c.ProviderClass<SysCacheProvider>().UseQueryCache())*
2) Added the following sections to web.config:
<section name="syscache"
type="NHibernate.Caches.SysCache.SysCacheSectionHandler,
NHibernate.Caches.SysCache" />
<syscache>
<cache region="tests" expiration="3600" priority="3" />
</syscache>
3) I'm also making the entity cachable:
t.Cache
.Region("tests")
.ReadWrite();
I'm using QueryOver and found a post about caching not being working in such
case.
Am I missing something? Do I have to set my queries to be cachable, besides
marking the entities as such?
Any ideas?
Thanks in advance!
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.