O'Reilly logo

Pro ASP.NET MVC 5 Platform by 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 11

image

Caching Data

In this chapter, I describe the ASP.NET data caching feature, which is a state data service that actively manages the data it contains to limit the amount of memory that it occupies and to ensure that stale data isn’t used by the application. Table 11-1 summarizes this chapter.

Table 11-1. Chapter Summary

Problem

Solution

Listing

Cache data for later use.

Use the Cache class, an instance of which can be obtained through the HttpContext.Cache property.

12

Configure the cache.

Use the cache configuration section within the caching section group.

3

Set a time at which an item will be ejected from the cache.

Use an ...

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