Class UserGroupCacheRefresher
Handles User group cache invalidation/refreshing
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public sealed class UserGroupCacheRefresher : CacheRefresherBase<UserGroupCacheRefresherNotification>, ICacheRefresher, IDiscoverable
Remarks
This also needs to clear the user cache since IReadOnlyUserGroup's are attached to IUser objects
Constructors
View SourceUserGroupCacheRefresher(AppCaches, IEventAggregator, ICacheRefresherNotificationFactory)
Initializes a new instance of the UserGroupCacheRefresher class.
Declaration
public UserGroupCacheRefresher(AppCaches appCaches, IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory)
Parameters
| Type | Name | Description |
|---|---|---|
| AppCaches | appCaches | The application caches. |
| IEventAggregator | eventAggregator | The event aggregator. |
| ICacheRefresherNotificationFactory | factory | The notification factory. |
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. |
RefreshAll()
Refreshes all entities.
Declaration
public override void RefreshAll()
Remove(int)
Removes an entity.
Declaration
public override void Remove(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The entity's identifier. |