Weird Caching Error? You're probably not using the right cache access pattern…

Date Published: 02 April 2004

Weird Caching Error? You're probably not using the right cache access pattern…

Scott Cate, who runs kbAlertz.com, among other things, writes about an intermittent error he was getting on his site last fall. Shortly before this, I had written an article on msdn about Caching Best Practices, in which I described a caching pattern that should be followed to ensure proper behavior (e.g. no null reference exceptions). Scott was getting intermittent errors about 1 every 50,000 page views (which is certainly hard to duplicate by stepping through the code…). Luckily, the problem was solved by applying my caching pattern, which was the first “in the wild” report I had seen of my pattern actually fixing a known bug (which thrilled me). So anyway, read about Scott’s experiences here.

Steve Smith

About Ardalis

Software Engineer

Steve is an experienced software architect and trainer, focusing currently on ASP.NET Core and Domain-Driven Design.

Ardalis

Copyright © 2020