Try our conversational search powered by Generative AI!

Class ContentCacheScope

Specify content caching options for a scope of code

Inheritance
System.Object
ContentCacheScope
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class ContentCacheScope : 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 TimeSpan? SlidingExpiration { get; set; }
Property Value
Type Description
System.Nullable<System.TimeSpan>

Methods

Dispose()

Declaration
public void Dispose()

Implements

System.IDisposable

Extension Methods