I have a Windows Service which is using NHibernate (3) and SQL Server 2008. WPF-Clients are connecting over WCF to this Service for using DataAccess. My question is now: Can I use SysCache or SysCache2 in this Scenario - or are they only usable in Web-/ASP.NET-Applications?
Asked
Active
Viewed 432 times
1
-
Possible duplicate of [Does NHibernate SysCache work in a non-web app?](http://stackoverflow.com/questions/2572441/does-nhibernate-syscache-work-in-a-non-web-app) – Thomas C. G. de Vilhena Aug 19 '12 at 13:31
-
@ThomasC.G.deVilhena it *is* a duplicate, but the accepted answer to that question is wrong. – Diego Mijelshon Aug 20 '12 at 18:14
1 Answers
1
Yes, it works just fine.
You can use it even in a console app if you want to (provided the computer has the full .NET Framework installed and not just the Client Profile).

Diego Mijelshon
- 52,548
- 16
- 116
- 154
-
I don't think this is correct. SysCache2 uses the ASP.NET cache which does nothing in a non-web environment. – cbp Jul 30 '15 at 01:17
-
@cbp that is just not true. You can use it without problems. Just try. – Diego Mijelshon Jul 30 '15 at 01:20
-
-
@cbp try harder, because I have apps in production that use it :-) – Diego Mijelshon Jul 30 '15 at 01:25