开发者

ASP.NET Web service caching model guidance

I am creating a set of ASP.NET web services that each method is required to pass an authentication key. This 开发者_C百科authentication key is used to:

  1. Validate this client application/user is licensed.
  2. Get customer specific connection information (mysql connect, socket connect) to point at a particular server.
  3. Individual preferences (such as default store, system user, etc)

I'd like to keep the data in a MySql database where the web services are hosted. Clearly I can do the required validations/priming by reading the database, but I'd like to cache this information so that I don't have to round-trip to the database on every service request.

Can someone point me at the appropriate model in ASP.Net to solve this?


I would look at the System.Web.Caching.Cache class, here is the overview.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜