Caching usable in both WCF and ASP .NET applications (.NET 3.5)
问题 I need caching facility which should work from both WCF and from within an ASP .NET app. I have seen: System.Web.Caching.Cache which is not usable from WCF (as I understand it is usable only if service is hosted in IIS, which is not always the case) System.Runtime.Caching which is usable from both of them, but only available from .NET 4, but our .NET version is 3.5. Any suggestions? 回答1: You can absolutely use System.Web.Caching.Cache outside of IIS. Just add a reference to System.Web and