Class CacheEntrySettings
Represents configuration settings for cache entry durations.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class CacheEntrySettings
Remarks
This class defines the time-to-live (TTL) settings for different cache layers including local (in-memory), remote (distributed), and seed caches.
Constructors
View SourceCacheEntrySettings()
Declaration
public CacheEntrySettings()
Properties
View SourceLocalCacheDuration
Gets or sets the duration that items remain in the local (in-memory) cache.
Declaration
public TimeSpan LocalCacheDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan | The local cache duration. Defaults to 1 day. |
RemoteCacheDuration
Gets or sets the duration that items remain in the remote (distributed) cache.
Declaration
public TimeSpan RemoteCacheDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan | The remote cache duration. Defaults to 365 days. |
SeedCacheDuration
Gets or sets the duration that items remain in the seed cache.
Declaration
public TimeSpan SeedCacheDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan | The seed cache duration. Defaults to 365 days. |
Remarks
The seed cache is used during application startup to pre-populate the cache with frequently accessed content.