using Umbraco.Core.Sync; using umbraco.interfaces; namespace Umbraco.Core.Cache { /// /// A base class for json cache refreshers that ensures the correct events are raised when /// cache refreshing occurs. /// /// The real cache refresher type, this is used for raising strongly typed events public abstract class JsonCacheRefresherBase : CacheRefresherBase, IJsonCacheRefresher where TInstanceType : ICacheRefresher { public virtual void Refresh(string jsonPayload) { OnCacheUpdated(Instance, new CacheRefresherEventArgs(jsonPayload, MessageType.RefreshByJson)); } } }