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...
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...
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...