SaaS CMS has officially launched! Learn more now.

Class ContentCacheScope

Specify content caching options for a scope of code

Inheritance
System.Object
ContentCacheScope
Implements
System.IDisposable
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class ContentCacheScope : Object, IDisposable

Constructors

ContentCacheScope()

Initializes a new instance of the ContentCacheScope class.

Declaration
public ContentCacheScope()

Properties

Current

Get current caching scope

Declaration
public static ContentCacheScope Current { get; }
Property Value
Type Description
ContentCacheScope

SlidingExpiration

The sliding cache for how long published content is cached. Set to "0:0:0" to disable.

Declaration
public Nullable<TimeSpan> SlidingExpiration { get; set; }
Property Value
Type Description
System.Nullable<System.TimeSpan>

Methods

Dispose()

Declaration
public void Dispose()

Implements

System.IDisposable

Extension Methods