Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IJsonCacheRefresher

    A cache refresher that supports refreshing or removing cache based on a custom Json payload

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

    Methods

    View Source

    Refresh(string)

    Refreshes, clears, etc... any cache based on the information provided in the json

    Declaration
    void Refresh(string json)
    Parameters
    Type Name Description
    string json
    View Source

    RefreshInternal(string)

    Refreshes internal (isolated) caches by a json payload.

    Declaration
    void RefreshInternal(string json)
    Parameters
    Type Name Description
    string json

    The json payload.

    Remarks

    Runs inline in repository reads, possibly while the caller holds distributed locks. Implementations must only clear in-memory state: no distributed locks, no database access and no published-cache work. Anything that needs those belongs in Refresh(string), which the background synchronization runs. The default implementation delegates to Refresh(string), so a refresher whose Refresh does more than clear in-memory state should override this member.

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