Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    ClearCache(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.

    View Source

    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.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX