Class MediaCacheRefresher
Inheritance
object
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public sealed class MediaCacheRefresher : PayloadCacheRefresherBase<MediaCacheRefresherNotification, MediaCacheRefresher.JsonPayload>, IPayloadCacheRefresher<MediaCacheRefresher.JsonPayload>, IJsonCacheRefresher, ICacheRefresher, IDiscoverable
Constructors
View SourceMediaCacheRefresher(AppCaches, IJsonSerializer, IIdKeyMap, IEventAggregator, ICacheRefresherNotificationFactory, IMediaNavigationQueryService, IMediaNavigationManagementService, IMediaService, IMediaCacheService, ICacheManager)
Declaration
public MediaCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IIdKeyMap idKeyMap, IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, IMediaNavigationQueryService mediaNavigationQueryService, IMediaNavigationManagementService mediaNavigationManagementService, IMediaService mediaService, IMediaCacheService mediaCacheService, ICacheManager cacheManager)
Parameters
| Type | Name | Description |
|---|---|---|
| AppCaches | appCaches | |
| IJsonSerializer | serializer | |
| IIdKeyMap | idKeyMap | |
| IEventAggregator | eventAggregator | |
| ICacheRefresherNotificationFactory | factory | |
| IMediaNavigationQueryService | mediaNavigationQueryService | |
| IMediaNavigationManagementService | mediaNavigationManagementService | |
| IMediaService | mediaService | |
| IMediaCacheService | mediaCacheService | |
| ICacheManager | cacheManager |
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(Guid)
Refreshes an entity.
Declaration
public override void Refresh(Guid id)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | The entity's identifier. |
Refresh(int)
Refreshes an entity.
Declaration
public override void Refresh(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The entity's identifier. |
Refresh(JsonPayload[]?)
Refreshes as specified by a payload.
Declaration
public override void Refresh(MediaCacheRefresher.JsonPayload[]? payloads)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonPayload[] | payloads | The payload. |
RefreshAll()
Refreshes all entities.
Declaration
public override void RefreshAll()
RefreshInternal(JsonPayload[])
Refreshes internal (isolated) caches by a payload.
Declaration
public override void RefreshInternal(MediaCacheRefresher.JsonPayload[] payloads)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonPayload[] | payloads | The payload. |
RefreshMediaTypes(AppCaches)
Declaration
public static void RefreshMediaTypes(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. |