Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    CacheEntrySettings()

    Declaration
    public CacheEntrySettings()

    Properties

    View Source

    LocalCacheDuration

    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.

    View Source

    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.

    View Source

    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.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX