Interface IRepositoryCacheVersionService
Provides methods to manage and validate cache versioning for repository entities, ensuring cache consistency with the underlying database.
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public interface IRepositoryCacheVersionService
Methods
View SourceIsCacheSyncedAsync<TEntity>()
Validates if the cache is synced with the database.
Declaration
Task<bool> IsCacheSyncedAsync<TEntity>() where TEntity : class
Returns
| Type | Description |
|---|---|
| Task<bool> | True if cache is synced, false if cache needs fast-forwarding. |
Type Parameters
| Name | Description |
|---|---|
| TEntity | The type of the cached entity. |
SetCacheUpdatedAsync<TEntity>()
Registers a cache update for the specified entity type.
Declaration
Task SetCacheUpdatedAsync<TEntity>() where TEntity : class
Returns
| Type | Description |
|---|---|
| Task |
Type Parameters
| Name | Description |
|---|---|
| TEntity | The type of the cached entity. |
SetCachesSyncedAsync()
Registers that the cache has been synced with the database.
Declaration
Task SetCachesSyncedAsync()
Returns
| Type | Description |
|---|---|
| Task |