Class TypedCacheRefresherBase<TInstanceType, TEntityType>
A base class for "typed" cache refreshers.
Namespace: Umbraco.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public abstract class TypedCacheRefresherBase<TInstanceType, TEntityType> : CacheRefresherBase<TInstanceType>, ICacheRefresher, IDiscoverable where TInstanceType : class, ICacheRefresher
Type Parameters
Name | Description |
---|---|
TInstanceType | The actual cache refresher type. |
TEntityType | The entity type. |
Remarks
The actual cache refresher type is used for strongly typed events.
Constructors
View SourceTypedCacheRefresherBase(AppCaches)
Initializes a new instance of the TypedCacheRefresherBase<TInstanceType, TEntityType>.
Declaration
protected TypedCacheRefresherBase(AppCaches appCaches)
Parameters
Type | Name | Description |
---|---|---|
AppCaches | appCaches | A cache helper. |
Methods
View SourceRefresh(TEntityType)
Declaration
public virtual void Refresh(TEntityType instance)
Parameters
Type | Name | Description |
---|---|---|
TEntityType | instance |
Remove(TEntityType)
Declaration
public virtual void Remove(TEntityType instance)
Parameters
Type | Name | Description |
---|---|---|
TEntityType | instance |