Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IDeliveryApiOutputCacheEvictionProvider

    Provides additional cache tags to evict from the Delivery API output cache when content changes.

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

    Multiple implementations can be registered. The eviction handler iterates all providers to collect additional tags to evict beyond the built-in content key tag.

    Works as a pair with IDeliveryApiOutputCacheTagProvider: the tag provider adds custom tags when caching a response, and this provider maps content changes back to those tags at eviction time.

    Methods

    View Source

    GetAdditionalEvictionTagsAsync(OutputCacheContentChangedContext, CancellationToken)

    Returns additional cache tags to evict when the specified content changes.

    Declaration
    Task<IEnumerable<string>> GetAdditionalEvictionTagsAsync(OutputCacheContentChangedContext context, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    OutputCacheContentChangedContext context

    Details of the content change.

    CancellationToken cancellationToken

    A cancellation token.

    Returns
    Type Description
    Task<IEnumerable<string>>

    Additional cache tags to evict.

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