Interface IDistributedCacheBinder
Binds events to the distributed cache.
Namespace: Umbraco.Web.Cache
Assembly: Umbraco.Web.dll
Syntax
public interface IDistributedCacheBinder
Remarks
Use BindEvents(Boolean) to bind actual events, eg Saved, to the distributed cache, so that the proper refresh operations are executed when these events trigger.
Use HandleEvents(IEnumerable<IEventDefinition>) to handle events that have not actually triggered, but have been queued, so that the proper refresh operations are also executed.
Methods
View SourceBindEvents(Boolean)
Binds actual events to the distributed cache.
Declaration
void BindEvents(bool enableUnbinding = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | enableUnbinding | A value indicating whether to support unbinding the events. |
HandleEvents(IEnumerable<IEventDefinition>)
Handles events from definitions.
Declaration
void HandleEvents(IEnumerable<IEventDefinition> events)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IEventDefinition> | events |
UnbindEvents()
Unbinds bounded events.
Declaration
void UnbindEvents()