I have a UserNamePasswordValidator and it hits a database to verify that the request is valid for the wcfclientcredentials.
I came to realize that I don’t want to hit the database everytime I make a call.
What is the best way to cache the results?
ie if I already know username/pass is valid why check it over and over again?
You could cache the
username/passwordin adictionarywithusernameas the key andpasswordas the value.