Does NHibernate SysCache work in a non-web application?

I know that SysCache uses ASP caching under the hood, but since I don’t know about ASP cache implementation (and if it depends on IIS), I was wondering if SysCache would work in a non-web application (for example, a service Windows)?

Activating and using NHprofiler seems to indicate that this is not the case.

+3
source share
1 answer

No, it is not, Syscache is an abstraction over the asp.net cache. You must use a different cache for the service.

EDIT: : http://www.hanselman.com/blog/UsingTheASPNETCacheOutsideOfASPNET.aspx , -. , Microsoft -. , , .Net 4 ( 5, 6, 7,...).

+1

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


All Articles