Interface IValueEditorCache
Provides caching for IDataValueEditor instances associated with data types.
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public interface IValueEditorCache
Remarks
This cache reduces the computational overhead of repeatedly creating value editors for the same data type and editor combinations during request processing.
Methods
View SourceClearCache(IEnumerable<int>)
Clears the cached value editors for the specified data type identifiers.
Declaration
void ClearCache(IEnumerable<int> dataTypeIds)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<int> | dataTypeIds | The data type identifiers to clear from the cache. |
GetValueEditor(IDataEditor, IDataType)
Gets the value editor for the specified data editor and data type combination.
Declaration
IDataValueEditor GetValueEditor(IDataEditor dataEditor, IDataType dataType)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataEditor | dataEditor | The data editor. |
| IDataType | dataType | The data type. |
Returns
| Type | Description |
|---|---|
| IDataValueEditor | The cached or newly created IDataValueEditor. |