# Conflicts: # build/NuSpecs/UmbracoCms.Web.nuspec # src/SolutionInfo.cs # src/Umbraco.Core/ContentEditing/ContentTypesByKeys.cs # src/Umbraco.Core/Persistence/NPocoDatabaseExtensions-Bulk.cs # src/Umbraco.Core/PropertyEditors/IPropertyCacheCompression.cs # src/Umbraco.Core/PropertyEditors/IPropertyCacheCompressionOptions.cs # src/Umbraco.Core/PropertyEditors/NoopPropertyCacheCompressionOptions.cs # src/Umbraco.Core/Services/LocalizedTextServiceExtensions.cs # src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs # src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_15_0/AddCmsContentNuByteColumn.cs # src/Umbraco.Web.BackOffice/Controllers/ContentController.cs # src/Umbraco.Web.UI/Umbraco.Web.UI.csproj # src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs # src/Umbraco.Web/PublishedCache/NuCache/NuCacheComposer.cs # src/Umbraco.Web/PublishedCache/NuCache/NuCacheSerializerComponent.cs # src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs # src/Umbraco.Web/Umbraco.Web.csproj # src/Umbraco.Web/UrlHelperRenderExtensions.cs
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
// Copyright (c) Umbraco.
|
|
// See LICENSE for more details.
|
|
|
|
using System.ComponentModel;
|
|
|
|
namespace Umbraco.Cms.Core.Configuration.Models
|
|
{
|
|
/// <summary>
|
|
/// Typed configuration options for NuCache settings.
|
|
/// </summary>
|
|
[UmbracoOptions(Constants.Configuration.ConfigNuCache)]
|
|
public class NuCacheSettings
|
|
{
|
|
internal const string StaticNuCacheSerializerType = "MessagePack";
|
|
internal const int StaticSqlPageSize = 1000;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value defining the BTree block size.
|
|
/// </summary>
|
|
public int? BTreeBlockSize { get; set; }
|
|
|
|
/// <summary>
|
|
/// The serializer type that nucache uses to persist documents in the database.
|
|
/// </summary>
|
|
[DefaultValue(StaticNuCacheSerializerType)]
|
|
public NuCacheSerializerType NuCacheSerializerType { get; set; } = Enum<NuCacheSerializerType>.Parse(StaticNuCacheSerializerType);
|
|
|
|
/// <summary>
|
|
/// The paging size to use for nucache SQL queries.
|
|
/// </summary>
|
|
[DefaultValue(StaticSqlPageSize)]
|
|
public int SqlPageSize { get; set; } = StaticSqlPageSize;
|
|
|
|
public bool UnPublishedContentCompression { get; set; } = false;
|
|
}
|
|
}
|