Class SingleServerCacheVersionService
A simple cache version service that assumes the cache is always in sync.
Inheritance
object
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public class SingleServerCacheVersionService : IRepositoryCacheVersionService
Methods
View SourceIsCacheSyncedAsync<TEntity>()
Validates if the cache is synced with the database.
Declaration
public 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
public 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
public Task SetCachesSyncedAsync()
Returns
| Type | Description |
|---|---|
| Task |