Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / June 2005

Tip: Looking for answers? Try searching our database.

Difference in accessing Cache

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Todd Price - 27 Jan 2005 15:53 GMT
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?
Alvin Bruney [MVP] - 30 Jan 2005 00:42 GMT
No, they are basically the same underneath.

Signature

Regards,
Alvin Bruney

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
----------------------------------------------------------

> 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?
Ben Strackany - 07 Feb 2005 18:37 GMT
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.

Signature

Ben Strackany
www.developmentnow.com

> No, they are basically the same underneath.
>
[quoted text clipped - 3 lines]
> > are
> > the same, is there a difference in performance between the two?
Alvin Bruney [MVP] - 08 Feb 2005 14:11 GMT
I did say it was shameless...

Signature

Regards,
Alvin Bruney [MVP ASP.NET]

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

> Alvin, that is truly a shamless author plug. Heh, no, just kidding. :)
>
[quoted text clipped - 9 lines]
>> > are
>> > the same, is there a difference in performance between the two?
Paul Wu - 18 Jun 2005 20:36 GMT
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_1_0_0_47166/Difference-in-accessing-Cache.htm

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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.