Fix NuCache spelling

This commit is contained in:
nzdev
2020-08-04 18:03:08 +12:00
parent d4276dff58
commit 451eacf7cb
6 changed files with 9 additions and 9 deletions

View File

@@ -9,9 +9,9 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
public class AppSettingsNuCachePropertyMapFactory : INuCachePropertyOptionsFactory
{
public NucachePropertyOptions GetNuCachePropertyOptions()
public NuCachePropertyOptions GetNuCachePropertyOptions()
{
NucachePropertyOptions options = new NucachePropertyOptions
NuCachePropertyOptions options = new NuCachePropertyOptions
{
PropertyMap = GetPropertyMap(),
LZ4CompressionLevel = K4os.Compression.LZ4.LZ4Level.L10_OPT,

View File

@@ -8,6 +8,6 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
public interface INuCachePropertyOptionsFactory
{
NucachePropertyOptions GetNuCachePropertyOptions();
NuCachePropertyOptions GetNuCachePropertyOptions();
}
}

View File

@@ -146,7 +146,7 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
}
}
private readonly (NucachePropertyCompressionLevel Compress, NucachePropertyDecompressionLevel decompressionLevel, string MappedAlias) DEFAULT_MAP =(NucachePropertyCompressionLevel.None, NucachePropertyDecompressionLevel.NotCompressed, null);
private readonly NucachePropertyOptions _nucachePropertyOptions;
private readonly NuCachePropertyOptions _nucachePropertyOptions;
public (NucachePropertyCompressionLevel Compress, NucachePropertyDecompressionLevel decompressionLevel, string MappedAlias) GetSerializationMap(string propertyAlias)
{

View File

@@ -12,7 +12,7 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
internal class MsgPackContentNestedDataSerializer : IContentNestedDataByteSerializer
{
private MessagePackSerializerOptions _options;
private readonly NucachePropertyOptions _propertyOptions;
private readonly NuCachePropertyOptions _propertyOptions;
public MsgPackContentNestedDataSerializer(INuCachePropertyOptionsFactory propertyOptionsFactory = null)
{
@@ -34,7 +34,7 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
_options = defaultOptions
.WithResolver(resolver)
.WithCompression(MessagePackCompression.Lz4BlockArray);
_propertyOptions = propertyOptionsFactory?.GetNuCachePropertyOptions() ?? new NucachePropertyOptions();
_propertyOptions = propertyOptionsFactory?.GetNuCachePropertyOptions() ?? new NuCachePropertyOptions();
}
public string ToJson(string serialized)

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
public class NucachePropertyOptions
public class NuCachePropertyOptions
{
public IReadOnlyDictionary<string, (NucachePropertyCompressionLevel compress, NucachePropertyDecompressionLevel decompressionLevel,
string mappedAlias)> PropertyMap