From c223d93a53391accb6b7ae516285ababbd645c2d Mon Sep 17 00:00:00 2001 From: Andy Butland Date: Mon, 30 Jun 2025 07:53:09 +0200 Subject: [PATCH] Adds XML header docs indicating usage of options on NuCacheSerializerType (#19555) Adds XML header docs indicating usage of options on NuCacheSerializerType. --- .../Models/NuCacheSerializerType.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Configuration/Models/NuCacheSerializerType.cs b/src/Umbraco.Core/Configuration/Models/NuCacheSerializerType.cs index 0506ddb98b..a012f47aa3 100644 --- a/src/Umbraco.Core/Configuration/Models/NuCacheSerializerType.cs +++ b/src/Umbraco.Core/Configuration/Models/NuCacheSerializerType.cs @@ -4,10 +4,23 @@ namespace Umbraco.Cms.Core.Configuration.Models; /// -/// The serializer type that nucache uses to persist documents in the database. +/// The serializer type that the published content cache uses to persist documents in the database. /// public enum NuCacheSerializerType { - MessagePack = 1, // Default + /// + /// The default serializer type, which uses MessagePack for serialization. + /// + MessagePack = 1, + + /// + /// The legacy JSON serializer type, which uses JSON for serialization. + /// + /// + /// This option was provided for backward compatibility for the Umbraco cache implementation used from Umbraco 8 to 14 (NuCache). + /// It is no longer supported with the cache implementation from Umbraco 15 based on .NET's Hybrid cache. + /// Use the faster and more compact instead. + /// The option is kept available only for a more readable format suitable for testing purposes. + /// JSON = 2, }