![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Does anyone have any recommendations on whether to use System.Web.HttpContext.Current.Cache or System.Web.HttpRuntime.Cache to access the ASP.NET Cache? Are these different cache contexts? If they are the same, is there a difference in performance between the two? |
#3
| |||
| |||
|
|
No, they are basically the same underneath. -- Regards, Alvin Bruney [Shameless Author plug] The Microsoft Office Web Components Black Book with .NET Now Available @ www.lulu.com/owc ---------------------------------------------------------- "Todd Price" <ToddPrice (AT) discussions (DOT) microsoft.com> wrote in message news:3F88254E-C8D1-48A3-B97C-849CD922DF5E (AT) microsoft (DOT) com... Does anyone have any recommendations on whether to use System.Web.HttpContext.Current.Cache or System.Web.HttpRuntime.Cache to access the ASP.NET Cache? Are these different cache contexts? If they are the same, is there a difference in performance between the two? |
#4
| |||
| |||
|
Alvin, that is truly a shamless author plug. Heh, no, just kidding. ![]() Todd, one thing to note is than a few places in the MSDN documentation, it erroneously implies that System.Web.HttpContext.Current.Cache is some sort of temporary, page-execution-only cache. That's not the case. -- Ben Strackany www.developmentnow.com "Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message news:O$MWkSmBFHA.2392 (AT) TK2MSFTNGP14 (DOT) phx.gbl... No, they are basically the same underneath. -- Regards, Alvin Bruney [Shameless Author plug] The Microsoft Office Web Components Black Book with .NET Now Available @ www.lulu.com/owc ---------------------------------------------------------- "Todd Price" <ToddPrice (AT) discussions (DOT) microsoft.com> wrote in message news:3F88254E-C8D1-48A3-B97C-849CD922DF5E (AT) microsoft (DOT) com... Does anyone have any recommendations on whether to use System.Web.HttpContext.Current.Cache or System.Web.HttpRuntime.Cache to access the ASP.NET Cache? Are these different cache contexts? If they are the same, is there a difference in performance between the two? |
#5
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |