Interface ICacheRefresher<T>
Strongly type cache refresher that is able to refresh cache of real instances of objects as well as IDs
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public interface ICacheRefresher<T> : ICacheRefresher, IDiscoverable
Type Parameters
Name | Description |
---|---|
T |
Remarks
This is much better for performance when we're not running in a load balanced environment so we can refresh the cache against a already resolved object instead of looking the object back up by id.
Methods
View SourceRefresh(T)
Declaration
void Refresh(T instance)
Parameters
Type | Name | Description |
---|---|---|
T | instance |
Remove(T)
Declaration
void Remove(T instance)
Parameters
Type | Name | Description |
---|---|---|
T | instance |