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