diff --git a/Directory.Build.props b/Directory.Build.props index 6e910efb..9046a53a 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -19,6 +19,10 @@ true snupkg --> + latest + enable + logo-128x128.png + README.md diff --git a/README.md b/README.md index a73f375a..0383386e 100644 --- a/README.md +++ b/README.md @@ -299,6 +299,8 @@ And if you really want to talk about money, please consider making **❤ a dona Yes! -FusionCache is being used **in production** on **real world projects** for years, happily handling millions of requests per day, or at least that is what I know directly: considering that the FusionCache packages have been downloaded more than **3 million times** (thanks everybody!) it may very well be used even more. +FusionCache is being used **in production** on **real world projects** for years, happily handling millions of requests. + +Considering that the FusionCache packages have been downloaded more than **4 million times** (thanks everybody!) it may very well be used even more. And again, if you are using it please [**✉ drop me a line**](https://twitter.com/jodydonetti), I'd like to know! diff --git a/benchmarks/ZiggyCreatures.FusionCache.Benchmarks/ZiggyCreatures.FusionCache.Benchmarks.csproj b/benchmarks/ZiggyCreatures.FusionCache.Benchmarks/ZiggyCreatures.FusionCache.Benchmarks.csproj index 31bb537c..b89e2cea 100644 --- a/benchmarks/ZiggyCreatures.FusionCache.Benchmarks/ZiggyCreatures.FusionCache.Benchmarks.csproj +++ b/benchmarks/ZiggyCreatures.FusionCache.Benchmarks/ZiggyCreatures.FusionCache.Benchmarks.csproj @@ -4,8 +4,6 @@ Exe net8.0 - latest - enable ZiggyCreatures.Caching.Fusion.Benchmarks diff --git a/src/ZiggyCreatures.FusionCache.Backplane.Memory/ZiggyCreatures.FusionCache.Backplane.Memory.csproj b/src/ZiggyCreatures.FusionCache.Backplane.Memory/ZiggyCreatures.FusionCache.Backplane.Memory.csproj index 570418b6..7b30e205 100644 --- a/src/ZiggyCreatures.FusionCache.Backplane.Memory/ZiggyCreatures.FusionCache.Backplane.Memory.csproj +++ b/src/ZiggyCreatures.FusionCache.Backplane.Memory/ZiggyCreatures.FusionCache.Backplane.Memory.csproj @@ -2,8 +2,6 @@ netstandard2.0 - latest - enable 1.0.0 ZiggyCreatures.FusionCache.Backplane.Memory logo-128x128.png diff --git a/src/ZiggyCreatures.FusionCache.Backplane.StackExchangeRedis/ZiggyCreatures.FusionCache.Backplane.StackExchangeRedis.csproj b/src/ZiggyCreatures.FusionCache.Backplane.StackExchangeRedis/ZiggyCreatures.FusionCache.Backplane.StackExchangeRedis.csproj index aa3bcdaa..6844296d 100644 --- a/src/ZiggyCreatures.FusionCache.Backplane.StackExchangeRedis/ZiggyCreatures.FusionCache.Backplane.StackExchangeRedis.csproj +++ b/src/ZiggyCreatures.FusionCache.Backplane.StackExchangeRedis/ZiggyCreatures.FusionCache.Backplane.StackExchangeRedis.csproj @@ -2,16 +2,12 @@ netstandard2.0;netcoreapp3.1;net6.0 - latest - enable 1.0.0 ZiggyCreatures.FusionCache.Backplane.StackExchangeRedis - logo-128x128.png FusionCache backplane for Redis based on the StackExchange.Redis library backplane;redis;stackexchange;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy ZiggyCreatures.Caching.Fusion.Backplane.StackExchangeRedis ZiggyCreatures.FusionCache.Backplane.StackExchangeRedis.xml - README.md - Updated: package dependencies diff --git a/src/ZiggyCreatures.FusionCache.Chaos/ZiggyCreatures.FusionCache.Chaos.csproj b/src/ZiggyCreatures.FusionCache.Chaos/ZiggyCreatures.FusionCache.Chaos.csproj index 4038ebef..6608e5e9 100644 --- a/src/ZiggyCreatures.FusionCache.Chaos/ZiggyCreatures.FusionCache.Chaos.csproj +++ b/src/ZiggyCreatures.FusionCache.Chaos/ZiggyCreatures.FusionCache.Chaos.csproj @@ -2,16 +2,12 @@ netstandard2.0 - latest - enable 1.0.0 ZiggyCreatures.FusionCache.Chaos - logo-128x128.png Chaos-related utilities and implementations of various componenets (like a distributed cache or a backplane), useful for things like testing dependent components' behavior in a controlled failing environment. chaos;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy ZiggyCreatures.Caching.Fusion.Chaos ZiggyCreatures.FusionCache.Chaos.xml - README.md - Updated: package dependencies diff --git a/src/ZiggyCreatures.FusionCache.OpenTelemetry/ZiggyCreatures.FusionCache.OpenTelemetry.csproj b/src/ZiggyCreatures.FusionCache.OpenTelemetry/ZiggyCreatures.FusionCache.OpenTelemetry.csproj index 275ed383..409c6d9d 100644 --- a/src/ZiggyCreatures.FusionCache.OpenTelemetry/ZiggyCreatures.FusionCache.OpenTelemetry.csproj +++ b/src/ZiggyCreatures.FusionCache.OpenTelemetry/ZiggyCreatures.FusionCache.OpenTelemetry.csproj @@ -2,16 +2,12 @@ netstandard2.0 - latest - enable 1.0.0 ZiggyCreatures.FusionCache.OpenTelemetry - logo-128x128.png Add native OpenTelemetry support to FusionCache. telemetry;observability;opentelemetry;open-telemetry;chaos;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy ZiggyCreatures.FusionCache.OpenTelemetry ZiggyCreatures.FusionCache.OpenTelemetry.xml - README.md - Updated: package dependencies diff --git a/src/ZiggyCreatures.FusionCache.Serialization.CysharpMemoryPack/ZiggyCreatures.FusionCache.Serialization.CysharpMemoryPack.csproj b/src/ZiggyCreatures.FusionCache.Serialization.CysharpMemoryPack/ZiggyCreatures.FusionCache.Serialization.CysharpMemoryPack.csproj index fab9a078..c648e54c 100644 --- a/src/ZiggyCreatures.FusionCache.Serialization.CysharpMemoryPack/ZiggyCreatures.FusionCache.Serialization.CysharpMemoryPack.csproj +++ b/src/ZiggyCreatures.FusionCache.Serialization.CysharpMemoryPack/ZiggyCreatures.FusionCache.Serialization.CysharpMemoryPack.csproj @@ -1,17 +1,13 @@  - netstandard2.1;net6.0 - latest - enable + netstandard2.1;net7.0 1.0.0 ZiggyCreatures.FusionCache.Serialization.CysharpMemoryPack - logo-128x128.png FusionCache serializer based on Cysharp's MemoryPack serializer memorypack;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy;cache-stampede ZiggyCreatures.Caching.Fusion.Serialization.CysharpMemoryPack ZiggyCreatures.Caching.Fusion.Serialization.CysharpMemoryPack.xml - README.md - Updated: package dependencies diff --git a/src/ZiggyCreatures.FusionCache.Serialization.NeueccMessagePack/ZiggyCreatures.FusionCache.Serialization.NeueccMessagePack.csproj b/src/ZiggyCreatures.FusionCache.Serialization.NeueccMessagePack/ZiggyCreatures.FusionCache.Serialization.NeueccMessagePack.csproj index 74ed239f..5373ed82 100644 --- a/src/ZiggyCreatures.FusionCache.Serialization.NeueccMessagePack/ZiggyCreatures.FusionCache.Serialization.NeueccMessagePack.csproj +++ b/src/ZiggyCreatures.FusionCache.Serialization.NeueccMessagePack/ZiggyCreatures.FusionCache.Serialization.NeueccMessagePack.csproj @@ -2,16 +2,12 @@ netstandard2.0 - latest - enable 1.0.0 ZiggyCreatures.FusionCache.Serialization.NeueccMessagePack - logo-128x128.png FusionCache serializer based on Neuecc's MessagePack serializer messagepack;msgpack;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy;cache-stampede ZiggyCreatures.FusionCache.Serialization.NeueccMessagePack ZiggyCreatures.FusionCache.Serialization.NeueccMessagePack.xml - README.md - Updated: package dependencies diff --git a/src/ZiggyCreatures.FusionCache.Serialization.NewtonsoftJson/ZiggyCreatures.FusionCache.Serialization.NewtonsoftJson.csproj b/src/ZiggyCreatures.FusionCache.Serialization.NewtonsoftJson/ZiggyCreatures.FusionCache.Serialization.NewtonsoftJson.csproj index a67f996a..4e9a6dcb 100644 --- a/src/ZiggyCreatures.FusionCache.Serialization.NewtonsoftJson/ZiggyCreatures.FusionCache.Serialization.NewtonsoftJson.csproj +++ b/src/ZiggyCreatures.FusionCache.Serialization.NewtonsoftJson/ZiggyCreatures.FusionCache.Serialization.NewtonsoftJson.csproj @@ -2,16 +2,12 @@ netstandard2.0 - latest - enable 1.0.0 ZiggyCreatures.FusionCache.Serialization.NewtonsoftJson - logo-128x128.png FusionCache serializer based on Newtonsoft Json.NET json;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy;cache-stampede ZiggyCreatures.FusionCache.Serialization.NewtonsoftJson ZiggyCreatures.FusionCache.Serialization.NewtonsoftJson.xml - README.md - Updated: package dependencies diff --git a/src/ZiggyCreatures.FusionCache.Serialization.ProtoBufNet/ZiggyCreatures.FusionCache.Serialization.ProtoBufNet.csproj b/src/ZiggyCreatures.FusionCache.Serialization.ProtoBufNet/ZiggyCreatures.FusionCache.Serialization.ProtoBufNet.csproj index 9ed01810..411a2b0f 100644 --- a/src/ZiggyCreatures.FusionCache.Serialization.ProtoBufNet/ZiggyCreatures.FusionCache.Serialization.ProtoBufNet.csproj +++ b/src/ZiggyCreatures.FusionCache.Serialization.ProtoBufNet/ZiggyCreatures.FusionCache.Serialization.ProtoBufNet.csproj @@ -2,16 +2,12 @@ netstandard2.0 - latest - enable 1.0.0 ZiggyCreatures.FusionCache.Serialization.ProtoBufNet - logo-128x128.png FusionCache serializer based on protobuf-net protobuf;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy ZiggyCreatures.FusionCache.Serialization.ProtoBufNet ZiggyCreatures.FusionCache.Serialization.ProtoBufNet.xml - README.md - Updated: package dependencies diff --git a/src/ZiggyCreatures.FusionCache.Serialization.ServiceStackJson/ZiggyCreatures.FusionCache.Serialization.ServiceStackJson.csproj b/src/ZiggyCreatures.FusionCache.Serialization.ServiceStackJson/ZiggyCreatures.FusionCache.Serialization.ServiceStackJson.csproj index a1ed70a3..6188fa5e 100644 --- a/src/ZiggyCreatures.FusionCache.Serialization.ServiceStackJson/ZiggyCreatures.FusionCache.Serialization.ServiceStackJson.csproj +++ b/src/ZiggyCreatures.FusionCache.Serialization.ServiceStackJson/ZiggyCreatures.FusionCache.Serialization.ServiceStackJson.csproj @@ -2,16 +2,12 @@ netstandard2.0 - latest - enable 1.0.0 ZiggyCreatures.FusionCache.Serialization.ServiceStackJson - logo-128x128.png FusionCache serializer based on ServiceStack's Json serializer json;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy;cache-stampede ZiggyCreatures.FusionCache.Serialization.ServiceStackJson ZiggyCreatures.FusionCache.Serialization.ServiceStackJson.xml - README.md - Updated: package dependencies diff --git a/src/ZiggyCreatures.FusionCache.Serialization.SystemTextJson/ZiggyCreatures.FusionCache.Serialization.SystemTextJson.csproj b/src/ZiggyCreatures.FusionCache.Serialization.SystemTextJson/ZiggyCreatures.FusionCache.Serialization.SystemTextJson.csproj index 431d83d7..7cd6df56 100644 --- a/src/ZiggyCreatures.FusionCache.Serialization.SystemTextJson/ZiggyCreatures.FusionCache.Serialization.SystemTextJson.csproj +++ b/src/ZiggyCreatures.FusionCache.Serialization.SystemTextJson/ZiggyCreatures.FusionCache.Serialization.SystemTextJson.csproj @@ -2,16 +2,12 @@ netstandard2.0;netcoreapp3.1;net6.0 - latest - enable 1.0.0 ZiggyCreatures.FusionCache.Serialization.SystemTextJson - logo-128x128.png FusionCache serializer based on System.Text.Json json;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy ZiggyCreatures.FusionCache.Serialization.SystemTextJson ZiggyCreatures.FusionCache.Serialization.SystemTextJson.xml - README.md - Updated: package dependencies diff --git a/src/ZiggyCreatures.FusionCache/FusionCache_Async.cs b/src/ZiggyCreatures.FusionCache/FusionCache_Async.cs index 64bc9bae..22d884e9 100644 --- a/src/ZiggyCreatures.FusionCache/FusionCache_Async.cs +++ b/src/ZiggyCreatures.FusionCache/FusionCache_Async.cs @@ -15,8 +15,7 @@ public partial class FusionCache { private async ValueTask GetOrSetEntryInternalAsync(string operationId, string key, Func, CancellationToken, Task> factory, bool isRealFactory, MaybeValue failSafeDefaultValue, FusionCacheEntryOptions? options, CancellationToken token) { - if (options is null) - options = _options.DefaultEntryOptions; + options ??= _options.DefaultEntryOptions; IFusionCacheMemoryEntry? memoryEntry = null; bool memoryEntryIsValid = false; @@ -394,8 +393,7 @@ public async ValueTask GetOrSetAsync(string key, TValue defaultV private async ValueTask TryGetEntryInternalAsync(string operationId, string key, FusionCacheEntryOptions? options, CancellationToken token) { - if (options is null) - options = _options.DefaultEntryOptions; + options ??= _options.DefaultEntryOptions; token.ThrowIfCancellationRequested(); @@ -586,8 +584,7 @@ public async ValueTask SetAsync(string key, TValue value, FusionCacheEnt token.ThrowIfCancellationRequested(); - if (options is null) - options = _options.DefaultEntryOptions; + options ??= _options.DefaultEntryOptions; var operationId = MaybeGenerateOperationId(); @@ -624,8 +621,7 @@ public async ValueTask RemoveAsync(string key, FusionCacheEntryOptions? options token.ThrowIfCancellationRequested(); - if (options is null) - options = _options.DefaultEntryOptions; + options ??= _options.DefaultEntryOptions; var operationId = MaybeGenerateOperationId(); @@ -659,8 +655,7 @@ public async ValueTask ExpireAsync(string key, FusionCacheEntryOptions? options token.ThrowIfCancellationRequested(); - if (options is null) - options = _options.DefaultEntryOptions; + options ??= _options.DefaultEntryOptions; var operationId = MaybeGenerateOperationId(); diff --git a/src/ZiggyCreatures.FusionCache/FusionCache_Sync.cs b/src/ZiggyCreatures.FusionCache/FusionCache_Sync.cs index 39e9314e..a897bc1c 100644 --- a/src/ZiggyCreatures.FusionCache/FusionCache_Sync.cs +++ b/src/ZiggyCreatures.FusionCache/FusionCache_Sync.cs @@ -15,8 +15,7 @@ public partial class FusionCache { private IFusionCacheMemoryEntry? GetOrSetEntryInternal(string operationId, string key, Func, CancellationToken, TValue> factory, bool isRealFactory, MaybeValue failSafeDefaultValue, FusionCacheEntryOptions? options, CancellationToken token) { - if (options is null) - options = _options.DefaultEntryOptions; + options ??= _options.DefaultEntryOptions; IFusionCacheMemoryEntry? memoryEntry = null; bool memoryEntryIsValid = false; @@ -394,8 +393,7 @@ public TValue GetOrSet(string key, TValue defaultValue, FusionCacheEntry private IFusionCacheEntry? TryGetEntryInternal(string operationId, string key, FusionCacheEntryOptions? options, CancellationToken token) { - if (options is null) - options = _options.DefaultEntryOptions; + options ??= _options.DefaultEntryOptions; token.ThrowIfCancellationRequested(); @@ -586,8 +584,7 @@ public void Set(string key, TValue value, FusionCacheEntryOptions? optio token.ThrowIfCancellationRequested(); - if (options is null) - options = _options.DefaultEntryOptions; + options ??= _options.DefaultEntryOptions; var operationId = MaybeGenerateOperationId(); @@ -624,8 +621,7 @@ public void Remove(string key, FusionCacheEntryOptions? options = null, Cancella token.ThrowIfCancellationRequested(); - if (options is null) - options = _options.DefaultEntryOptions; + options ??= _options.DefaultEntryOptions; var operationId = MaybeGenerateOperationId(); @@ -659,8 +655,7 @@ public void Expire(string key, FusionCacheEntryOptions? options = null, Cancella token.ThrowIfCancellationRequested(); - if (options is null) - options = _options.DefaultEntryOptions; + options ??= _options.DefaultEntryOptions; var operationId = MaybeGenerateOperationId(); diff --git a/src/ZiggyCreatures.FusionCache/Internals/Builder/FusionCacheBuilder.cs b/src/ZiggyCreatures.FusionCache/Internals/Builder/FusionCacheBuilder.cs index b5edeb4e..0c0b1f17 100644 --- a/src/ZiggyCreatures.FusionCache/Internals/Builder/FusionCacheBuilder.cs +++ b/src/ZiggyCreatures.FusionCache/Internals/Builder/FusionCacheBuilder.cs @@ -102,14 +102,14 @@ public IFusionCache Build(IServiceProvider serviceProvider) if (options is null) { options = Options; - } - if (options is null) - { - options = new FusionCacheOptions() + if (options is null) { - CacheName = CacheName - }; + options = new FusionCacheOptions() + { + CacheName = CacheName + }; + } } SetupOptionsAction?.Invoke(options); diff --git a/src/ZiggyCreatures.FusionCache/ZiggyCreatures.FusionCache.csproj b/src/ZiggyCreatures.FusionCache/ZiggyCreatures.FusionCache.csproj index f74f19c6..17ba56f9 100644 --- a/src/ZiggyCreatures.FusionCache/ZiggyCreatures.FusionCache.csproj +++ b/src/ZiggyCreatures.FusionCache/ZiggyCreatures.FusionCache.csproj @@ -2,16 +2,12 @@ netstandard2.0;netcoreapp3.1;net6.0 - latest - enable 1.0.0 ZiggyCreatures.FusionCache - logo-128x128.png FusionCache is an easy to use, fast and robust cache with advanced resiliency features and an optional distributed 2nd level. caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy ZiggyCreatures.Caching.Fusion ZiggyCreatures.FusionCache.xml - README.md - Perf: zero allocations/minimal cpu usage in Get happy path - Perf: greatly reduced allocations/cpu usage in Set happy path diff --git a/src/ZiggyCreatures.FusionCache/docs/README.md b/src/ZiggyCreatures.FusionCache/docs/README.md index 32cbd28f..7e61bec1 100644 --- a/src/ZiggyCreatures.FusionCache/docs/README.md +++ b/src/ZiggyCreatures.FusionCache/docs/README.md @@ -136,8 +136,8 @@ FusionCache targets `.NET Standard 2.0` so any compatible .NET implementation is Yes! -FusionCache is being used **in production** on **real world projects** for years, happily handling millions of requests per day. +FusionCache is being used **in production** on **real world projects** for years, happily handling millions of requests. -Considering that the FusionCache packages have been downloaded more than **3 million times** (thanks everybody!) it may very well be used even more. +Considering that the FusionCache packages have been downloaded more than **4 million times** (thanks everybody!) it may very well be used even more. And again, if you are using it please [**✉ drop me a line**](https://twitter.com/jodydonetti), I'd like to know! diff --git a/tests/SerializerPayloadGenerator/Program.cs b/tests/SerializerPayloadGenerator/Program.cs index 934cee02..7b08491f 100644 --- a/tests/SerializerPayloadGenerator/Program.cs +++ b/tests/SerializerPayloadGenerator/Program.cs @@ -38,7 +38,7 @@ static void TestSamples(IFusionCacheSerializer[] serializers) Console.WriteLine("SAMPLES:"); foreach (var file in files) { - var payloadVersion = Regex.Match(file, @"\w+__v(\d+_\d+_\d+)_\d+\.bin").Groups[1]?.Value?.Replace('_', '.'); + var payloadVersion = Regex.Match(file, @"\w+__v(\d+_\d+_\d+)_\d+\.bin").Groups[1].Value.Replace('_', '.'); var payload = File.ReadAllBytes(file); Console.Write($"- FROM v{payloadVersion}: "); diff --git a/tests/ZiggyCreatures.FusionCache.Playground/Scenarios/OpenTelemetryScenario.cs b/tests/ZiggyCreatures.FusionCache.Playground/Scenarios/OpenTelemetryScenario.cs index dbdd20eb..933c2ca9 100644 --- a/tests/ZiggyCreatures.FusionCache.Playground/Scenarios/OpenTelemetryScenario.cs +++ b/tests/ZiggyCreatures.FusionCache.Playground/Scenarios/OpenTelemetryScenario.cs @@ -37,7 +37,7 @@ protected override void OnEventSourceCreated(EventSource eventSource) protected override void OnEventWritten(EventWrittenEventArgs eventData) { - _logger.LogWarning("WARN: Message = {Message}, Payload = {Payload}", eventData.Message, eventData.Payload?.Select(p => p?.ToString())?.ToArray()!); + _logger.LogWarning("WARN: Message = {Message}, Payload = {Payload}", eventData.Message, eventData.Payload?.Select(p => p?.ToString()).ToArray()!); } } diff --git a/tests/ZiggyCreatures.FusionCache.Playground/ZiggyCreatures.FusionCache.Playground.csproj b/tests/ZiggyCreatures.FusionCache.Playground/ZiggyCreatures.FusionCache.Playground.csproj index 850b7258..27dcb1b3 100644 --- a/tests/ZiggyCreatures.FusionCache.Playground/ZiggyCreatures.FusionCache.Playground.csproj +++ b/tests/ZiggyCreatures.FusionCache.Playground/ZiggyCreatures.FusionCache.Playground.csproj @@ -3,8 +3,6 @@ Exe net8.0 - latest - enable false ZiggyCreatures.Caching.Fusion.Playground 1f4e47b6-6dd9-49b0-af63-058750249662 diff --git a/tests/ZiggyCreatures.FusionCache.Simulator/ZiggyCreatures.FusionCache.Simulator.csproj b/tests/ZiggyCreatures.FusionCache.Simulator/ZiggyCreatures.FusionCache.Simulator.csproj index cdb4bc2b..b0f790f8 100644 --- a/tests/ZiggyCreatures.FusionCache.Simulator/ZiggyCreatures.FusionCache.Simulator.csproj +++ b/tests/ZiggyCreatures.FusionCache.Simulator/ZiggyCreatures.FusionCache.Simulator.csproj @@ -3,9 +3,7 @@ Exe net8.0 - latest enable - enable false ZiggyCreatures.Caching.Fusion.Simulator diff --git a/tests/ZiggyCreatures.FusionCache.Tests/SerializationTests.cs b/tests/ZiggyCreatures.FusionCache.Tests/SerializationTests.cs index ac694dba..81f114b9 100644 --- a/tests/ZiggyCreatures.FusionCache.Tests/SerializationTests.cs +++ b/tests/ZiggyCreatures.FusionCache.Tests/SerializationTests.cs @@ -239,7 +239,7 @@ public async Task CanDeserializeOldVersionsAsync(SerializerType serializerType) foreach (var file in files) { - var payloadVersion = __re_VersionExtractor.Match(file).Groups[1]?.Value?.Replace('_', '.'); + var payloadVersion = __re_VersionExtractor.Match(file).Groups[1].Value.Replace('_', '.'); var payload = File.ReadAllBytes(file); var deserialized = await serializer.DeserializeAsync>(payload); @@ -267,7 +267,7 @@ public void CanDeserializeOldVersions(SerializerType serializerType) foreach (var file in files) { - var payloadVersion = __re_VersionExtractor.Match(file).Groups[1]?.Value?.Replace('_', '.'); + var payloadVersion = __re_VersionExtractor.Match(file).Groups[1].Value.Replace('_', '.'); var payload = File.ReadAllBytes(file); var deserialized = serializer.Deserialize>(payload); diff --git a/tests/ZiggyCreatures.FusionCache.Tests/ZiggyCreatures.FusionCache.Tests.csproj b/tests/ZiggyCreatures.FusionCache.Tests/ZiggyCreatures.FusionCache.Tests.csproj index 1098ece5..2acc9c25 100644 --- a/tests/ZiggyCreatures.FusionCache.Tests/ZiggyCreatures.FusionCache.Tests.csproj +++ b/tests/ZiggyCreatures.FusionCache.Tests/ZiggyCreatures.FusionCache.Tests.csproj @@ -2,8 +2,6 @@ net8.0 - latest - enable false FusionCacheTests