Class MemberCacheRefresher
Inheritance
object
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)
Declaration
[Obsolete("Use the non obsoleted contructor instead. Planned for removal in V18")]
public MemberCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IIdKeyMap idKeyMap, IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory)
Parameters
| Type | Name | Description |
|---|---|---|
| AppCaches | appCaches | |
| IJsonSerializer | serializer | |
| IIdKeyMap | idKeyMap | |
| IEventAggregator | eventAggregator | |
| ICacheRefresherNotificationFactory | factory |
MemberCacheRefresher(AppCaches, IJsonSerializer, IIdKeyMap, IEventAggregator, ICacheRefresherNotificationFactory, IMemberPartialViewCacheInvalidator)
Declaration
public MemberCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IIdKeyMap idKeyMap, IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, IMemberPartialViewCacheInvalidator memberPartialViewCacheInvalidator)
Parameters
| Type | Name | Description |
|---|---|---|
| AppCaches | appCaches | |
| IJsonSerializer | serializer | |
| IIdKeyMap | idKeyMap | |
| IEventAggregator | eventAggregator | |
| ICacheRefresherNotificationFactory | factory | |
| IMemberPartialViewCacheInvalidator | memberPartialViewCacheInvalidator |
Fields
View SourceUniqueId
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[])
Refreshes internal (isolated) caches by a payload.
Declaration
public override void RefreshInternal(MemberCacheRefresher.JsonPayload[] payloads)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonPayload[] | payloads | The payload. |
RefreshMemberTypes(AppCaches)
Declaration
public static void RefreshMemberTypes(AppCaches appCaches)
Parameters
| Type | Name | Description |
|---|---|---|
| AppCaches | appCaches |
Remove(int)
Removes an entity.
Declaration
public override void Remove(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The entity's identifier. |