Chapter 12. Caching and Application Events

In this chapter, you will learn how to:

  • Cache responses using the CacheDuration property of the WebMethod attribute.

  • Cache data using the System.Web.Cache object.

  • Use the Global.asax file to process application events.

  • Use application events to simplify XML Web service code files.

In Chapter 10, we explained how you can use features of the ASP.NET platform to build a stateful XML Web service. In this chapter, we look at two other useful ASP.NET features—caching and application events—that can be used to simplify XML Web service development and increase performance.

Caching

A cache allows you to store information in memory to speed up future requests. The principle behind caching is that retrieving data from ...

Get Microsoft® .NET XML Web Services Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.