.net - Should we not use the System.Web.Caching.Cache class in a WinForms app? -
I have seen many articles / blog posts that advocate the use of the system. Web.Caching.Cache does not have applications for the Web, however, it has been quite clearly stated that
The cache class has not been used to exclude ASP.NET applications. It was designed and tested for use in ASP.NET to provide caching for web applications. In other types of applications, such as console applications or Windows form applications, ASP.NET caching may not work properly.
Is the documentation wrong, or should we not really use this class? If later, what could be wrong? Our Platforms Winforms / .NET 3.5.
can not be automatically removed when unused or unused cache objects if the application is an asp. Net application is not therefore, if cache objects are used with ASP.NET, the reserved system memory for cash objects is not released. You can not manually use the internal ASP.NET methods to clean the cache because the methods are marked internally and intended for internal use. Then your decision to use it in an external application at your own risk.
Scott Hanselman has a post for more details
Comments
Post a Comment