Interface IContentCacheFactory
Interface for an object that can create IContentCache<TContent> caches for a given content type.
Namespace: Tableau.Migration.Content.Search
Assembly: Tableau.Migration.dll
Syntax
public interface IContentCacheFactory
Remarks
Implementations should be thread safe due to parallel migration processing.
Methods
ForContentType<TContent>(bool)
Gets or creates a content cache for a given content type.
Declaration
IContentCache<TContent>? ForContentType<TContent>(bool throwIfNotAvailable) where TContent : class, IContentReference
Parameters
| Type | Name | Description |
|---|---|---|
| bool | throwIfNotAvailable | True to throw if the cache is not available/registered, false otherwise. |
Returns
| Type | Description |
|---|---|
| IContentCache<TContent> | The content cache. |
Type Parameters
| Name | Description |
|---|---|
| TContent | The content type. |