ASP.NET Cache ‘Locking’

Looks like you can count on blogs every 2-3 days, sometimes more when I have the time….my bar time gets in the way…..

Thought I’d pass along another ASP.NET performance-related article. This one discusses how to handle concurrency issues with the Cache object. Not many developers realize this problem, where multiple threads (pages) could be trying to access a Cache object at the same time, causing it to possibly be loaded multiple times. This articles gives a good explanation of the problems, and how to avoid it through techniques such as thread synchronization.