O'Reilly logo

Microsoft® .NET XML Web Services Step by Step by Allen Jones, Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required