Hi,
I have the following, very interesting class...
pubilc class Thing{
public Thing()
{
DoSomethingThatTakesALongTime();
}
pubic boolean CheckSomething(string criteria)
{
return criteria == "something";
} }
In my ASP.Net MVC application, I need to call make a call to CheckSomething, very frequently.
As you can see, the constructor takes a long time to load.
What approaches can I use to cache the class? Keep in mind that I want to keep it testable....and I don't know what that entails!!!!
Cheers,
ETFairfax