Search Results for

    Show / Hide Table of Contents
    View Source

    Class SingleServerCacheVersionService

    A simple cache version service that assumes the cache is always in sync. This is useful in scenarios where you have a single server setup and do not need to manage cache synchronization across multiple servers.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Cache
    Assembly: Umbraco.Core.dll
    Syntax
    public class SingleServerCacheVersionService : IRepositoryCacheVersionService

    Methods

    View Source

    IsCacheSyncedAsync<TEntity>()

    Validates if the cache is synced with the database.

    Declaration
    public 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
    public 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
    public Task SetCachesSyncedAsync()
    Returns
    Type Description
    Task
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX