using Umbraco.Cms.Core.Models; namespace Umbraco.Cms.Infrastructure.HybridCache.Serialization; /// /// Serializes/Deserializes document to the SQL Database as a string. /// /// /// Resolved from the . This cannot be resolved from DI. /// internal interface IContentCacheDataSerializer { /// /// Deserialize the data into a . /// ContentCacheDataModel? Deserialize(IReadOnlyContentBase content, string? stringData, byte[]? byteData, bool published); /// /// Serializes the . /// ContentCacheDataSerializationResult Serialize(IReadOnlyContentBase content, ContentCacheDataModel model, bool published); }