Skip to content

Commit

Permalink
v1.2.0-preview1
Browse files Browse the repository at this point in the history
  • Loading branch information
jodydonetti committed May 19, 2024
1 parent 5936a61 commit c178d46
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.1.0</Version>
<Version>1.2.0-preview1</Version>
<PackageId>ZiggyCreatures.FusionCache.Backplane.Memory</PackageId>
<Description>FusionCache in memory backplane, used for testing</Description>
<PackageTags>backplane;memory;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy</PackageTags>
Expand All @@ -11,6 +11,7 @@
<PackageReleaseNotes>
- Updated: package dependencies
</PackageReleaseNotes>
<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.1.0</Version>
<Version>1.2.0-preview1</Version>
<PackageId>ZiggyCreatures.FusionCache.Backplane.StackExchangeRedis</PackageId>
<Description>FusionCache backplane for Redis based on the StackExchange.Redis library</Description>
<PackageTags>backplane;redis;stackexchange;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy</PackageTags>
Expand All @@ -11,6 +11,7 @@
<PackageReleaseNotes>
- Updated: package dependencies
</PackageReleaseNotes>
<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.1.0</Version>
<Version>1.2.0-preview1</Version>
<PackageId>ZiggyCreatures.FusionCache.Chaos</PackageId>
<Description>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.</Description>
<PackageTags>chaos;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy</PackageTags>
<RootNamespace>ZiggyCreatures.Caching.Fusion.Chaos</RootNamespace>
<DocumentationFile>ZiggyCreatures.FusionCache.Chaos.xml</DocumentationFile>
<PackageReleaseNotes>
- Add: new ChaosMemoryCache component
- Updated: package dependencies
</PackageReleaseNotes>
<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.1.0</Version>
<Version>1.2.0-preview1</Version>
<PackageId>ZiggyCreatures.FusionCache.OpenTelemetry</PackageId>
<Description>Add native OpenTelemetry support to FusionCache.</Description>
<PackageTags>telemetry;observability;opentelemetry;open-telemetry;chaos;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy</PackageTags>
Expand All @@ -11,6 +11,7 @@
<PackageReleaseNotes>
- Updated: package dependencies
</PackageReleaseNotes>
<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net7.0</TargetFrameworks>
<Version>1.1.0</Version>
<Version>1.2.0-preview1</Version>
<PackageId>ZiggyCreatures.FusionCache.Serialization.CysharpMemoryPack</PackageId>
<Description>FusionCache serializer based on Cysharp's MemoryPack serializer</Description>
<PackageTags>memorypack;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy;cache-stampede</PackageTags>
Expand All @@ -11,6 +11,7 @@
<PackageReleaseNotes>
- Updated: package dependencies
</PackageReleaseNotes>
<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.1.0</Version>
<Version>1.2.0-preview1</Version>
<PackageId>ZiggyCreatures.FusionCache.Serialization.NeueccMessagePack</PackageId>
<Description>FusionCache serializer based on Neuecc's MessagePack serializer</Description>
<PackageTags>messagepack;msgpack;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy;cache-stampede</PackageTags>
Expand All @@ -11,6 +11,7 @@
<PackageReleaseNotes>
- Updated: package dependencies
</PackageReleaseNotes>
<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.1.0</Version>
<Version>1.2.0-preview1</Version>
<PackageId>ZiggyCreatures.FusionCache.Serialization.NewtonsoftJson</PackageId>
<Description>FusionCache serializer based on Newtonsoft Json.NET</Description>
<PackageTags>json;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy;cache-stampede</PackageTags>
Expand All @@ -11,6 +11,7 @@
<PackageReleaseNotes>
- Updated: package dependencies
</PackageReleaseNotes>
<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.1.0</Version>
<Version>1.2.0-preview1</Version>
<PackageId>ZiggyCreatures.FusionCache.Serialization.ProtoBufNet</PackageId>
<Description>FusionCache serializer based on protobuf-net</Description>
<PackageTags>protobuf;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy</PackageTags>
Expand All @@ -11,6 +11,7 @@
<PackageReleaseNotes>
- Updated: package dependencies
</PackageReleaseNotes>
<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.1.0</Version>
<Version>1.2.0-preview1</Version>
<PackageId>ZiggyCreatures.FusionCache.Serialization.ServiceStackJson</PackageId>
<Description>FusionCache serializer based on ServiceStack's Json serializer</Description>
<PackageTags>json;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy;cache-stampede</PackageTags>
Expand All @@ -11,6 +11,7 @@
<PackageReleaseNotes>
- Updated: package dependencies
</PackageReleaseNotes>
<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.1.0</Version>
<Version>1.2.0-preview1</Version>
<PackageId>ZiggyCreatures.FusionCache.Serialization.SystemTextJson</PackageId>
<Description>FusionCache serializer based on System.Text.Json</Description>
<PackageTags>json;caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy</PackageTags>
Expand All @@ -11,6 +11,7 @@
<PackageReleaseNotes>
- Updated: package dependencies
</PackageReleaseNotes>
<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/ZiggyCreatures.FusionCache/FusionCacheDiagnostics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static class FusionCacheDiagnostics
/// <summary>
/// The current version of FusionCache.
/// </summary>
public const string FusionCacheVersion = "1.1.0";
public const string FusionCacheVersion = "1.2.0-preview1";

/// <summary>
/// The activity source name for FusionCache.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -198,20 +199,15 @@ public static Exception GetSingleInnerExceptionOrSelf(this AggregateException ex

public static string ToLogString(this CacheItemPriority priority)
{
switch (priority)
return priority switch
{
case CacheItemPriority.Low:
return "L";
case CacheItemPriority.Normal:
return "N";
case CacheItemPriority.High:
return "H";
case CacheItemPriority.NeverRemove:
return "NR";
}

// FALLBACK
return Enum.GetName(CacheItemPriorityType, priority);
CacheItemPriority.Low => "L",
CacheItemPriority.Normal => "N",
CacheItemPriority.High => "H",
CacheItemPriority.NeverRemove => "NR",
// FALLBACK
_ => Enum.GetName(CacheItemPriorityType, priority),
};
}

public static string ToLogString(this long? value)
Expand Down Expand Up @@ -256,7 +252,7 @@ public static void SafeExecute<TEventArgs>(this EventHandler<TEventArgs> ev, str
{
static void ExecuteInvocations(string? operationId, string? key, IFusionCache cache, string eventName, TEventArgs e, Delegate[] invocations, ILogger? logger, LogLevel errorLogLevel)
{
foreach (EventHandler<TEventArgs> invocation in invocations)
foreach (EventHandler<TEventArgs> invocation in invocations.Cast<EventHandler<TEventArgs>>())
{
try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.1.0</Version>
<Version>1.2.0-preview1</Version>
<PackageId>ZiggyCreatures.FusionCache</PackageId>
<Description>FusionCache is an easy to use, fast and robust cache with advanced resiliency features and an optional distributed 2nd level.</Description>
<PackageTags>caching;cache;multi-level;multilevel;fusion;fusioncache;fusion-cache;performance;async;ziggy</PackageTags>
<RootNamespace>ZiggyCreatures.Caching.Fusion</RootNamespace>
<DocumentationFile>ZiggyCreatures.FusionCache.xml</DocumentationFile>
<PackageReleaseNotes>
- Fix: added missing OnMiss event calls (no pun intended) in some distributed cache operations flow
- Fix: fixed a rare deadlock involving eager refresh + cancellation in a specific moment + some very bad luck
- Fix: better fail-safe max duration handling
- Changed: the default value for AutoRecoveryDelay changed from 2s to 5s (to better align with the standard reconnect timing of StackExchange.Redis)
- Perf: some minor memory/cpu optimizations
- Add: full support for DI keyed services
- Add: new PreferSyncSerialization option
</PackageReleaseNotes>
<EnablePackageValidation>true</EnablePackageValidation>
<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -990,12 +990,10 @@ public void CanDoWithoutLogger()
.WithoutLogger()
;

using (var serviceProvider = services.BuildServiceProvider())
{
var cache = serviceProvider.GetRequiredService<IFusionCache>();
using var serviceProvider = services.BuildServiceProvider();
var cache = serviceProvider.GetRequiredService<IFusionCache>();

Assert.Null(GetLogger(cache));
}
Assert.Null(GetLogger(cache));
}

[Fact]
Expand Down

0 comments on commit c178d46

Please sign in to comment.