Export (0) Print
Expand All

OutputCache Class

Provides programmatic access to the output-cache providers that are specified in the configuration file for a Web site.

System.Object
  System.Web.Caching.OutputCache

Namespace:  System.Web.Caching
Assembly:  System.Web (in System.Web.dll)

public static class OutputCache

The OutputCache type exposes the following members.

  NameDescription
Public propertyStatic memberDefaultProviderNameGets the name of the default provider that is configured for the output cache.
Public propertyStatic memberProvidersGets a collection of the output-cache providers that are specified in the configuration file for a Web site.
Top

  NameDescription
Public methodStatic memberDeserializeDeserializes a binary object into output-cache data.
Public methodStatic memberSerializeSerializes output-cache data into binary data.
Top

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.

.NET Framework

Supported in: 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft