httpcontext.cache

HttpContext.Cache Physical Memory Usage

Is there any way to find the number of bytes of memory that are currently in the HttpContext.Cache? I've found where you can get the physical memory limit using EffectivePrivateBytesLimit or EffectivePercentagePhysicalMemoryLimit, but I'm having difficulties finding the current physical memory usage. Any ideas ? ---UPDATE--- Afer som...

cache problem in asp.net with c#

hi, I am using the fileuplaod control to upload the images. For this I used to stored it in the cache for 2 hours in byte format and show this image using the HttpContext in the .ashx file. For some Reason it is sometime saving in the cache and sometime not. I am using asp.net 2.0 and C# language. My code For Saving : //Name of the...

what techniques should be used to handle objects in asp.net Cache to prevent problems from multiple asp.net worker threads access?

since asp.net contains multiple threads that are executing at the same time. so if 2 threads access an object (simple or complex) that i got from the the asp.net httpcontext Cache. can't this lead to state problems on that object if these 2 theads tried to modify/read it at the same time? so what kind of precautions should i implement? f...