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

Get Pro ASP.NET MVC 5 Platform now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.