using Umbraco.Core.Sync;
using umbraco.interfaces;
namespace Umbraco.Core.Cache
{
///
/// Provides a base class for "json" cache refreshers.
///
/// The actual cache refresher type.
/// Ensures that the correct events are raised when cache refreshing occurs.
public abstract class JsonCacheRefresherBase : CacheRefresherBase, IJsonCacheRefresher
where TInstance : ICacheRefresher
{
public virtual void Refresh(string json)
{
OnCacheUpdated(Instance, new CacheRefresherEventArgs(json, MessageType.RefreshByJson));
}
}
}