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

rls

To enable row-level security (RLS) in MS SQL Server (2016 and later) , you need to define a security policy that uses a user-defined, inli...