OutputCache Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides programmatic access to the output-cache providers that are specified in the configuration file for a Web site.
public ref class OutputCache abstract sealed
public static class OutputCache
type OutputCache = class
Public Class OutputCache
- Inheritance
-
OutputCache
Output caching stores the generated output of pages, controls, and HTTP responses in memory. Output caching enables you to cache different versions of content depending on the query string and on form-post parameters to a page, on browser type, or on the language of the user. You can configure ASP.NET to cache an output-cache entry for a specific period. You can also configure ASP.NET to evict a cache entry automatically based on an external event such as changes in the database that the cache depends on.
The OutputCache class enables you to extend output caching. For example, you can configure one or more custom output-cache providers that target other storage devices such as local or remote disks, databases, cloud storage, and distributed cache engines.
Default |
Gets the name of the default provider that is configured for the output cache. |
Providers |
Gets a collection of the output-cache providers that are specified in the configuration file for a Web site. |
Deserialize(Stream) |
Deserializes a binary object into output-cache data. |
Serialize(Stream, Object) |
Serializes output-cache data into binary data. |
Product | Versions |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: