Class MemberCacheRefresher
Cache refresher for member caches.
Inheritance
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 SourceMemberCacheRefresher(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. |
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 SourceUniqueId
The unique identifier for this cache refresher.
Declaration
public static readonly Guid UniqueId
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
View SourceName
Gets the name of the refresher.
Declaration
public override string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RefresherUniqueId
Gets the unique identifier of the refresher.
Declaration
public override Guid RefresherUniqueId { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
Methods
View SourceRefresh(int)
Refreshes an entity.
Declaration
public override void Refresh(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The entity's identifier. |
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. |
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. |
Remove(int)
Removes an entity.
Declaration
public override void Remove(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The entity's identifier. |