Class CacheRefresherCollection
Represents a collection of ICacheRefresher instances.
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public class CacheRefresherCollection : BuilderCollectionBase<ICacheRefresher>, IBuilderCollection<ICacheRefresher>
Remarks
This collection provides access to all registered cache refreshers, allowing lookup by unique identifier.
Constructors
View SourceCacheRefresherCollection(Func<IEnumerable<ICacheRefresher>>)
Initializes a new instance of the CacheRefresherCollection class.
Declaration
public CacheRefresherCollection(Func<IEnumerable<ICacheRefresher>> items)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<IEnumerable<ICacheRefresher>> | items | A factory function that returns the cache refresher instances. |
Properties
View Sourcethis[Guid]
Gets the cache refresher with the specified unique identifier.
Declaration
public ICacheRefresher? this[Guid id] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | The unique identifier of the cache refresher. |
Property Value
| Type | Description |
|---|---|
| ICacheRefresher | The cache refresher with the specified identifier, or |