NHibernate + ASP.NET + Open Session in View + L2Cache

I am using CodeProject, well known Open Session in Viewfor handling NHibernate Sessions. Does it work well with Level 2 Cache? Has anyone succeeded in this? Should I use NH.Burrowinstead? Any advice on l2 cache in asp.net best practices is appreciated.

Edit: link to CodeProject article: http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx

+3
source share
2 answers

I am using the Unit of Work template to process my session. Then I create an HttpModule that implements a “web request session” that works very well. My HttpModule will launch a block of work on the PreExecuteRequestHandler application, and then save it in the request. He then uses the PostExecuteRequestHandler hook to complete the Unit of Work.

This article of my Unit of Work is based on: http://nhforge.org/wikis/patternsandpractices/nhibernate-and-the-unit-of-work-pattern.aspx

0
source

AS Far as NHibernate L2 cache, check this,

NCache as an L2 cache.

NCache - .NET Java, ASP.NET JSP. NCache Nhibernate.

0

Source: https://habr.com/ru/post/1731896/


All Articles