Class PayloadCacheRefresherBase<TInstanceType, TPayload>
A base class for "payload" class refreshers.
Namespace: Umbraco.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public abstract class PayloadCacheRefresherBase<TInstanceType, TPayload> : JsonCacheRefresherBase<TInstanceType>, ICacheRefresher, IDiscoverable where TInstanceType : class, ICacheRefresher
Type Parameters
Name | Description |
---|---|
TInstanceType | The actual cache refresher type. |
TPayload | The payload type. |
Remarks
The actual cache refresher type is used for strongly typed events.
Constructors
View SourcePayloadCacheRefresherBase(AppCaches)
Initializes a new instance of the PayloadCacheRefresherBase<TInstanceType, TPayload>.
Declaration
protected PayloadCacheRefresherBase(AppCaches appCaches)
Parameters
Type | Name | Description |
---|---|---|
AppCaches | appCaches | A cache helper. |
Methods
View SourceDeserialize(String)
Deserializes a json payload into an object payload.
Declaration
protected virtual TPayload[] Deserialize(string json)
Parameters
Type | Name | Description |
---|---|---|
System.String | json | The json payload. |
Returns
Type | Description |
---|---|
TPayload[] | The deserialized object payload. |
Refresh(TPayload[])
Refreshes as specified by a payload.
Declaration
public virtual void Refresh(TPayload[] payloads)
Parameters
Type | Name | Description |
---|---|---|
TPayload[] | payloads | The payload. |
Refresh(String)
Declaration
public override void Refresh(string json)
Parameters
Type | Name | Description |
---|---|---|
System.String | json |