Tuesday, May 3, 2011

Is there a difference in accessing the Cache of an application when calling HttpRuntime.Cache vs. HttpContext.Current.Cache?

No they are both one and the same. However, notice that HttpContext.Current.Cache requires resolving to HttpRuntime.Cache, and hence requires that bit of more processing.  Also HttpContext.Current.Cache is not available outside ASP.NET applications.

No comments:

Post a Comment

How to check local and global angular versions

 Use the command ng version (or ng v ) to find the version of Angular CLI in the current folder. Run it outside of the Angular project, to f...