Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IRepositoryCacheVersionService

    Provides methods to manage and validate cache versioning for repository entities, ensuring cache consistency with the underlying database.

    Namespace: Umbraco.Cms.Core.Cache
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IRepositoryCacheVersionService

    Methods

    View Source

    IsCacheSyncedAsync<TEntity>()

    Validates if the cache is synced with the database.

    Declaration
    Task<bool> IsCacheSyncedAsync<TEntity>() where TEntity : class
    Returns
    Type Description
    Task<bool>

    True if cache is synced, false if cache needs fast-forwarding.

    Type Parameters
    Name Description
    TEntity

    The type of the cached entity.

    View Source

    SetCacheUpdatedAsync<TEntity>()

    Registers a cache update for the specified entity type.

    Declaration
    Task SetCacheUpdatedAsync<TEntity>() where TEntity : class
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    TEntity

    The type of the cached entity.

    View Source

    SetCachesSyncedAsync()

    Registers that the cache has been synced with the database.

    Declaration
    Task SetCachesSyncedAsync()
    Returns
    Type Description
    Task
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX