Files
Umbraco-CMS/src/Umbraco.PublishedCache.HybridCache/ContentCacheNode.cs
Nikolaj Geisle 1c859e75ca V15: Add custom serializer for hybrid cache (#17727)
* Add custom serializer

* Add migration to rebuild cache

* Rename migration namespace to 15.1

* Also clear media cache

* Remove failed cache items

* Refactor to only use keys for document cache repository

---------

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
2024-12-06 13:20:57 +01:00

25 lines
622 B
C#

using System.ComponentModel;
namespace Umbraco.Cms.Infrastructure.HybridCache;
// This is for cache performance reasons, see https://learn.microsoft.com/en-us/aspnet/core/performance/caching/hybrid?view=aspnetcore-9.0#reuse-objects
[ImmutableObject(true)]
public sealed class ContentCacheNode
{
public int Id { get; set; }
public Guid Key { get; set; }
public int SortOrder { get; set; }
public DateTime CreateDate { get; set; }
public int CreatorId { get; set; }
public int ContentTypeId { get; set; }
public bool IsDraft { get; set; }
public ContentData? Data { get; set; }
}