Interface ICacheRefresher
Defines a cache refresher used for distributed cache invalidation in load-balanced environments.
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public interface ICacheRefresher : IDiscoverable
Remarks
Cache refreshers are responsible for invalidating or refreshing cached data across all servers in a load-balanced cluster when data changes occur.
Properties
View SourceName
Gets the name of this cache refresher.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RefresherUniqueId
Gets the unique identifier for this cache refresher.
Declaration
Guid RefresherUniqueId { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
Methods
View SourceRefresh(Guid)
Refreshes a specific cached item by its GUID identifier.
Declaration
void Refresh(Guid id)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | The GUID of the item to refresh. |
Refresh(int)
Refreshes a specific cached item by its integer identifier.
Declaration
void Refresh(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The identifier of the item to refresh. |
RefreshAll()
Refreshes all cached items managed by this refresher.
Declaration
void RefreshAll()
Remove(int)
Removes a specific cached item by its integer identifier.
Declaration
void Remove(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The identifier of the item to remove. |