using System.Collections.Generic; using Umbraco.Cms.Core.Events; namespace Umbraco.Cms.Core.Cache { /// /// Binds events to the distributed cache. /// /// /// Use to bind actual events, eg , to /// the distributed cache, so that the proper refresh operations are executed when these events trigger. /// Use to handle events that have not actually triggered, but have /// been queued, so that the proper refresh operations are also executed. /// public interface IDistributedCacheBinder { /// /// Handles events from definitions. /// void HandleEvents(IEnumerable events); /// /// Binds actual events to the distributed cache. /// /// A value indicating whether to support unbinding the events. void BindEvents(bool enableUnbinding = false); /// /// Unbinds bounded events. /// void UnbindEvents(); } }