Interface IContentReferenceCacheLoadStrategy<TContent>
Interface for an object that defines how a IContentReferenceCache loads items from the underlying store on a cache miss.
Performed in a separate interface to allow composition of various cache implementation with eager/lazy loading strategies.
Namespace: Tableau.Migration.Content.Search
Assembly: Tableau.Migration.dll
Syntax
public interface IContentReferenceCacheLoadStrategy<TContent> where TContent : IContentReference
Type Parameters
| Name | Description |
|---|---|
| TContent |
Methods
LoadAsync(IContentReferenceCacheLoadAttempt<TContent>, CancellationToken)
Loads the content reference cache from the content reference store.
Declaration
Task LoadAsync(IContentReferenceCacheLoadAttempt<TContent> attempt, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| IContentReferenceCacheLoadAttempt<TContent> | attempt | The cache load attempt to control. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task | The task to await. |