using Umbraco.Core.Sync; namespace Umbraco.Core.Cache { /// /// A base class for "json" cache refreshers. /// /// The actual cache refresher type. /// The actual cache refresher type is used for strongly typed events. public abstract class JsonCacheRefresherBase : CacheRefresherBase, IJsonCacheRefresher where TInstanceType : class, ICacheRefresher { /// /// Initializes a new instance of the . /// /// A cache helper. protected JsonCacheRefresherBase(CacheHelper cacheHelper) : base(cacheHelper) { } /// /// Refreshes as specified by a json payload. /// /// The json payload. public virtual void Refresh(string json) { OnCacheUpdated(This, new CacheRefresherEventArgs(json, MessageType.RefreshByJson)); } } }