Class TemplateCacheRefresher
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public sealed class TemplateCacheRefresher : CacheRefresherBase<TemplateCacheRefresherNotification>, ICacheRefresher, IDiscoverable
Constructors
View SourceTemplateCacheRefresher(AppCaches, IIdKeyMap, IContentTypeCommonRepository, IEventAggregator, ICacheRefresherNotificationFactory)
Declaration
public TemplateCacheRefresher(AppCaches appCaches, IIdKeyMap idKeyMap, IContentTypeCommonRepository contentTypeCommonRepository, IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory)
Parameters
| Type | Name | Description |
|---|---|---|
| AppCaches | appCaches | |
| IIdKeyMap | idKeyMap | |
| IContentTypeCommonRepository | contentTypeCommonRepository | |
| IEventAggregator | eventAggregator | |
| ICacheRefresherNotificationFactory | factory |
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. |
Remove(int)
Removes an entity.
Declaration
public override void Remove(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The entity's identifier. |