Joerg Jooss
1/31/2007 7:18:00 PM
Thus wrote H@2dC0d.32,
> The cache object you are using in ASP.NET is static.
>
> Do you create an instance of it when you use Cache? No!
>
> So it is public static (shared in VB.NET), and thread safe.
That's a false conclusion. All relevant Cache methods like Add(), Get(),
Insert() or its indexer are instance methods. Cache is also neither a static
meber in Page, nor in HttpContext.
Personally, I think the Windows SDK docs are simply wrong. So yes, no fiddling
with locks required ;-)
Cheers,
--
Joerg Jooss
news-reply@joergjooss.de