Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ICacheRefresher

    Defines a cache refresher used for distributed cache invalidation in load-balanced environments.

    Namespace: Umbraco.Cms.Core.Cache
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ICacheRefresher : IDiscoverable
    Remarks

    Cache refreshers are responsible for invalidating or refreshing cached data across all servers in a load-balanced cluster when data changes occur.

    Properties

    View Source

    Name

    Gets the name of this cache refresher.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    string
    View Source

    RefresherUniqueId

    Gets the unique identifier for this cache refresher.

    Declaration
    Guid RefresherUniqueId { get; }
    Property Value
    Type Description
    Guid

    Methods

    View Source

    Refresh(Guid)

    Refreshes a specific cached item by its GUID identifier.

    Declaration
    void Refresh(Guid id)
    Parameters
    Type Name Description
    Guid id

    The GUID of the item to refresh.

    View Source

    Refresh(int)

    Refreshes a specific cached item by its integer identifier.

    Declaration
    void Refresh(int id)
    Parameters
    Type Name Description
    int id

    The identifier of the item to refresh.

    View Source

    RefreshAll()

    Refreshes all cached items managed by this refresher.

    Declaration
    void RefreshAll()
    View Source

    Remove(int)

    Removes a specific cached item by its integer identifier.

    Declaration
    void Remove(int id)
    Parameters
    Type Name Description
    int id

    The identifier of the item to remove.

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