I am building a WCF service. I need to store reference data in the cache which I will look up every time I receive input from the method... What is the right way to do this? I would also like to define an expiration policy for the cache that will invalidate it after a certain time interval.
If you are using .NET 4, the recommended way is to use MemoryCache
2.1m questions
2.1m answers
60 comments
57.0k users