Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentTypeCacheRefresher

    Cache refresher for content type, media type, and member type caches.

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

    Constructors

    View Source

    ContentTypeCacheRefresher(AppCaches, IJsonSerializer, IIdKeyMap, IContentTypeCommonRepository, IEventAggregator, ICacheRefresherNotificationFactory, IPublishedModelFactory, IPublishedContentTypeFactory, IDocumentCacheService, IPublishedContentTypeCache, IMediaCacheService)

    Initializes a new instance of the ContentTypeCacheRefresher class.

    Declaration
    public ContentTypeCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IIdKeyMap idKeyMap, IContentTypeCommonRepository contentTypeCommonRepository, IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, IPublishedModelFactory publishedModelFactory, IPublishedContentTypeFactory publishedContentTypeFactory, IDocumentCacheService documentCacheService, IPublishedContentTypeCache publishedContentTypeCache, IMediaCacheService mediaCacheService)
    Parameters
    Type Name Description
    AppCaches appCaches

    The application caches.

    IJsonSerializer serializer

    The JSON serializer.

    IIdKeyMap idKeyMap

    The ID-key mapping service.

    IContentTypeCommonRepository contentTypeCommonRepository

    The content type common repository.

    IEventAggregator eventAggregator

    The event aggregator.

    ICacheRefresherNotificationFactory factory

    The cache refresher notification factory.

    IPublishedModelFactory publishedModelFactory

    The published model factory.

    IPublishedContentTypeFactory publishedContentTypeFactory

    The published content type factory.

    IDocumentCacheService documentCacheService

    The document cache service.

    IPublishedContentTypeCache publishedContentTypeCache

    The published content type cache.

    IMediaCacheService mediaCacheService

    The media cache service.

    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(ContentTypeCacheRefresher.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(ContentTypeCacheRefresher.JsonPayload[] payloads)
    Parameters
    Type Name Description
    JsonPayload[] payloads

    The payloads to process.

    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