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:
- Validate this client application/user is licensed.
- Get customer specific connection information (mysql connect, socket connect) to point at a particular server.
- 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.
精彩评论