Search Results for

    Show / Hide Table of Contents
    View Source

    Class MediaCacheRefresher

    Cache refresher for media caches.

    Inheritance
    object
    CacheRefresherBase<MediaCacheRefresherNotification>
    JsonCacheRefresherBase<MediaCacheRefresherNotification, MediaCacheRefresher.JsonPayload>
    PayloadCacheRefresherBase<MediaCacheRefresherNotification, MediaCacheRefresher.JsonPayload>
    Namespace: Umbraco.Cms.Core.Cache
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class MediaCacheRefresher : PayloadCacheRefresherBase<MediaCacheRefresherNotification, MediaCacheRefresher.JsonPayload>, IPayloadCacheRefresher<MediaCacheRefresher.JsonPayload>, IJsonCacheRefresher, ICacheRefresher, IDiscoverable

    Constructors

    View Source

    MediaCacheRefresher(AppCaches, IJsonSerializer, IIdKeyMap, IEventAggregator, ICacheRefresherNotificationFactory, IMediaNavigationQueryService, IMediaNavigationManagementService, IMediaService, IMediaCacheService, ICacheManager)

    Initializes a new instance of the MediaCacheRefresher class.

    Declaration
    public MediaCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IIdKeyMap idKeyMap, IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, IMediaNavigationQueryService mediaNavigationQueryService, IMediaNavigationManagementService mediaNavigationManagementService, IMediaService mediaService, IMediaCacheService mediaCacheService, ICacheManager cacheManager)
    Parameters
    Type Name Description
    AppCaches appCaches

    The application caches.

    IJsonSerializer serializer

    The JSON serializer.

    IIdKeyMap idKeyMap

    The ID-key mapping service.

    IEventAggregator eventAggregator

    The event aggregator.

    ICacheRefresherNotificationFactory factory

    The cache refresher notification factory.

    IMediaNavigationQueryService mediaNavigationQueryService

    The media navigation query service.

    IMediaNavigationManagementService mediaNavigationManagementService

    The media navigation management service.

    IMediaService mediaService

    The media service.

    IMediaCacheService mediaCacheService

    The media cache service.

    ICacheManager cacheManager

    The cache manager.

    Fields

    View Source

    UniqueId

    The unique identifier for this cache refresher.

    Declaration
    public static readonly Guid UniqueId
    Field Value
    Type Description
    Guid

    Properties

    View Source

    Name

    Gets the name of the refresher.

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

    RefresherUniqueId

    Gets the unique identifier of the refresher.

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

    Methods

    View Source

    Refresh(Guid)

    Refreshes an entity.

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

    The entity's identifier.

    View Source

    Refresh(int)

    Refreshes an entity.

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

    The entity's identifier.

    View Source

    Refresh(JsonPayload[]?)

    Refreshes as specified by a payload.

    Declaration
    public override void Refresh(MediaCacheRefresher.JsonPayload[]? payloads)
    Parameters
    Type Name Description
    JsonPayload[] payloads

    The payload.

    View Source

    RefreshAll()

    Refreshes all entities.

    Declaration
    public override void RefreshAll()
    View Source

    RefreshInternal(JsonPayload[])

    Performs internal cache refresh operations for the specified payloads.

    Declaration
    public override void RefreshInternal(MediaCacheRefresher.JsonPayload[] payloads)
    Parameters
    Type Name Description
    JsonPayload[] payloads

    The payloads to process.

    View Source

    RefreshMediaTypes(AppCaches)

    Refreshes media type caches by clearing all cached media.

    Declaration
    public static void RefreshMediaTypes(AppCaches appCaches)
    Parameters
    Type Name Description
    AppCaches appCaches

    The application caches.

    View Source

    Remove(int)

    Removes an entity.

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

    The entity's identifier.

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