Groups | Blog | Home
all groups > asp.net caching > july 2005 >

asp.net caching : Fundumental question about Cache intrinsic object



Stefan [MSFT]
7/5/2005 12:00:00 AM
Hi B.

this is not a MCMS related question. Please post to an ASP.NET related
newsgroup.

Thanks,
Stefan


"B.J." <BJ@discussions.microsoft.com> schrieb im Newsbeitrag
news:30FDB963-F121-4ABD-8397-F3C7144B0F0F@microsoft.com...
[quoted text, click to view]

B.J.
7/5/2005 6:21:04 AM
Hi,

May happen follwowing situation ?

String S=Cache["T"];
Response.Write(S); // After writing of e.g. 100 bytes S will null because
server is running out of resources and IIS clear cache. So output will be
incomplete.

May this happen or IIS synchronize access to cache and this can never happen ?

Thank you.

Alvin Bruney [MVP - ASP.NET]
7/5/2005 10:14:41 PM
synchronized cache access has nothing to do with it. The cache will be
scavenged when there is memory pressure. Build your applications with that
behavior in mind and you will be fine.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
[quoted text, click to view]

AddThis Social Bookmark Button