Search Results for

    Show / Hide Table of Contents
    View Source

    Class MemberCacheRefresher

    Cache refresher for member caches.

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

    Constructors

    View Source

    MemberCacheRefresher(AppCaches, IJsonSerializer, IIdKeyMap, IEventAggregator, ICacheRefresherNotificationFactory)

    Initializes a new instance of the MemberCacheRefresher class.

    Declaration
    [Obsolete("Use the non-obsolete constructor instead. Scheduled for removal in Umbraco 18.")]
    public MemberCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IIdKeyMap idKeyMap, IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory)
    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.

    View Source

    MemberCacheRefresher(AppCaches, IJsonSerializer, IIdKeyMap, IEventAggregator, ICacheRefresherNotificationFactory, IMemberPartialViewCacheInvalidator)

    Initializes a new instance of the MemberCacheRefresher class.

    Declaration
    public MemberCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IIdKeyMap idKeyMap, IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, IMemberPartialViewCacheInvalidator memberPartialViewCacheInvalidator)
    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.

    IMemberPartialViewCacheInvalidator memberPartialViewCacheInvalidator

    The member partial view cache invalidator.

    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(int)

    Refreshes an entity.

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

    The entity's identifier.

    View Source

    RefreshInternal(JsonPayload[])

    Performs internal cache refresh operations for the specified payloads.

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

    The payloads to process.

    View Source

    RefreshMemberTypes(AppCaches)

    Refreshes member type caches by clearing all cached members.

    Declaration
    public static void RefreshMemberTypes(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