Hi all,
I'm trying to enable the second level cache for NHibernate (using SysCache2). I do have all the prerequirements setup (enable via config, also enable query cache, set <cache/> in hbm file, ...) and while debugging, I found out the ReadWrite cache did not seem to work. I did a search and came up with this "old" bug: https://nhibernate.jira.com/browse/NH-391 Looks like my session.Timestamp still is Long.MinValue because the OpenSession method on SessionFactoryImpl supplies it with this value. There are two methods, one with a connection and sessionLocalInterceptor and one only with a sessionLocalInterceptor. In the latter, this line is added: long timestamp = settings.CacheProvider.NextTimestamp(); - and that works. I assume there's a reason why Long.MinValue is used there. But I have no idea why... Can anyone enlighten me? Thanks a lot! Regards, -- Wouter Groeneveld. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
