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 SourceDeserialize(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 |
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 |