Alex Rivera | Logout

Caching in WCF?

Asked 2009-05-28T17:18:41.003
42

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.

Edit
Report

2 Answers

1
answered 2011-05-09T09:28:03.300
0

You can use System.Web.Cache (even if you're not in a web context), and that's what I'd do. It's basically a big, in memory hash table with some niceties for expiring contents.

answered 2009-05-28T17:33:06.857

Your Answer