Today I found myself coding a fairly familiar pattern – checking whether there was an entry in the ASP.NET cache with a particular key, if not, executing a method and adding the result to the cache, and either way, returning the result.
I wondered whether there was a “nice” way to do this using generics and anonymous delegates. This is … Read more “Caching Method Results in ASP.NET 2.0 using Generics & Delegates”