[4/10/2015 3:50:03 PM UPDATE: I updated the definition of the Caches class to support injecting dependencies into ICaches<T> implementations.]
[7/1/2017 2:44:53 PM UPDATE: Here’s a dinky little solution that illustrates the caching solution at work: ConsoleApp1
Also, I hate reading my old posts. :) ]
In many applications, there is a need to globally cache some information for a certain period of time, and then periodically refresh that data the next time it is called upon.
And more often than not, there are several different types of information that we want to cache using this paradigm. And wouldn’t it be cool if we could call a single method to reset all of the caches we’re holding on to?
Here’s how I like to make that kind of magic happen… Read More »Smarter Time-limited Caching