Caching in WCF?

前端 未结 9 963
故里飘歌
故里飘歌 2020-11-29 01:50

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?

9条回答
  •  情书的邮戳
    2020-11-29 02:32

    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.

提交回复
热议问题