HighTechTalks DotNet Forums  

Difference in accessing Cache

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Difference in accessing Cache in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Todd Price
 
Posts: n/a

Default Difference in accessing Cache - 01-27-2005 , 10:53 AM






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?

Reply With Quote
  #2  
Old   
Alvin Bruney [MVP]
 
Posts: n/a

Default Re: Difference in accessing Cache - 01-29-2005 , 07:42 PM






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

Quote:
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?



Reply With Quote
  #3  
Old   
Ben Strackany
 
Posts: n/a

Default Re: Difference in accessing Cache - 02-07-2005 , 01:37 PM



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

Quote:
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?





Reply With Quote
  #4  
Old   
Alvin Bruney [MVP]
 
Posts: n/a

Default Re: Difference in accessing Cache - 02-08-2005 , 09:11 AM



I did say it was shameless...

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://tinyurl.com/27cok
----------------------------------------------------------


"Ben Strackany" <infoNOSPAM (AT) developmentnow (DOT) nospam.com> wrote

Quote:
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?







Reply With Quote
  #5  
Old   
Paul Wu
 
Posts: n/a

Default RE: Difference in accessing Cache - 06-18-2005 , 03:36 PM



They are functionally the same but make sure you don't set the cache with one and read it using the other. It won't work reliably.


Paul Wu
www.rulemasters.com


From http://developmentnow.com/g/11_2005_...sing-Cache.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.