Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IContentCacheDataSerializer

    Serializes/Deserializes ContentCacheDataModel document to the SQL Database as a string

    Namespace: Umbraco.Cms.Infrastructure.PublishedCache.DataSource
    Assembly: Umbraco.PublishedCache.NuCache.dll
    Syntax
    public interface IContentCacheDataSerializer
    Remarks

    Resolved from the IContentCacheDataSerializerFactory. This cannot be resolved from DI.

    Methods

    View Source

    Deserialize(IReadOnlyContentBase, String, Byte[], Boolean)

    Deserialize the data into a ContentCacheDataModel

    Declaration
    ContentCacheDataModel Deserialize(IReadOnlyContentBase content, string stringData, byte[] byteData, bool published)
    Parameters
    Type Name Description
    IReadOnlyContentBase content
    System.String stringData
    System.Byte[] byteData
    System.Boolean published
    Returns
    Type Description
    ContentCacheDataModel
    View Source

    Serialize(IReadOnlyContentBase, ContentCacheDataModel, Boolean)

    Serializes the ContentCacheDataModel

    Declaration
    ContentCacheDataSerializationResult Serialize(IReadOnlyContentBase content, ContentCacheDataModel model, bool published)
    Parameters
    Type Name Description
    IReadOnlyContentBase content
    ContentCacheDataModel model
    System.Boolean published
    Returns
    Type Description
    ContentCacheDataSerializationResult
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Deserialize(IReadOnlyContentBase, String, Byte[], Boolean)
      • Serialize(IReadOnlyContentBase, ContentCacheDataModel, Boolean)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX