From 2e75a0a9fd7870756414da7e8adbb1fce6520f10 Mon Sep 17 00:00:00 2001 From: Caleb Lloyd Date: Sun, 18 May 2025 22:46:41 -0400 Subject: [PATCH 1/2] rename assemblies Signed-off-by: Caleb Lloyd --- README.md | 20 +++++++++---------- src/NatsDistributedCache/NatsCache.Log.cs | 2 +- src/NatsDistributedCache/NatsCache.cs | 2 +- src/NatsDistributedCache/NatsCacheOptions.cs | 2 +- .../NatsDistributedCache.csproj | 4 ++-- .../NatsDistributedCacheExtensions.cs | 2 +- .../NatsHybridCacheSerializer.cs | 2 +- src/NatsHybridCache/NatsHybridCache.csproj | 4 ++-- .../NatsHybridCacheExtensions.cs | 4 ++-- .../packages.linux-x64.lock.json | 2 +- .../packages.osx-arm64.lock.json | 2 +- .../packages.win-x64.lock.json | 2 +- .../Cache/HybridCacheSetAndRemoveTests.cs | 2 +- .../Cache/NatsCacheSetAndRemoveTests.cs | 2 +- .../Cache/TimeExpirationAsyncTests.cs | 2 +- .../Cache/TimeExpirationTests.cs | 2 +- test/IntegrationTests/IntegrationTests.csproj | 2 +- test/IntegrationTests/NatsCollection.cs | 2 +- .../NatsIntegrationFixture.cs | 4 ++-- test/IntegrationTests/TestBase.cs | 6 +++--- .../packages.linux-x64.lock.json | 10 +++++----- .../packages.osx-arm64.lock.json | 10 +++++----- .../packages.win-x64.lock.json | 10 +++++----- test/TestUtils/Assertions/ExceptionAssert.cs | 2 +- test/TestUtils/NatsTestExtensions.cs | 4 ++-- .../Services/Logging/TestOutputLogger.cs | 2 +- test/TestUtils/TestUtils.csproj | 2 +- test/TestUtils/packages.linux-x64.lock.json | 6 +++--- test/TestUtils/packages.osx-arm64.lock.json | 6 +++--- test/TestUtils/packages.win-x64.lock.json | 6 +++--- .../Cache/TimeExpirationAsyncUnitTests.cs | 4 ++-- .../Cache/TimeExpirationUnitTests.cs | 4 ++-- .../NatsDistributedCacheExtensionsTests.cs | 2 +- .../NatsHybridCacheExtensionsTests.cs | 4 ++-- .../NatsHybridCacheSerializerFactoryTests.cs | 2 +- test/UnitTests/TestBase.cs | 2 +- test/UnitTests/UnitTests.csproj | 2 +- test/UnitTests/packages.linux-x64.lock.json | 8 ++++---- test/UnitTests/packages.osx-arm64.lock.json | 8 ++++---- test/UnitTests/packages.win-x64.lock.json | 8 ++++---- util/NatsAppHost/NatsAppHost.csproj | 2 +- util/NatsAppHost/packages.linux-x64.lock.json | 6 +++--- util/NatsAppHost/packages.osx-arm64.lock.json | 6 +++--- util/NatsAppHost/packages.win-x64.lock.json | 6 +++--- util/PerfTest/PerfTest.cs | 4 ++-- util/PerfTest/PerfTest.csproj | 2 +- util/PerfTest/Program.cs | 6 +++--- util/PerfTest/Utils/StopwatchPool.cs | 2 +- util/PerfTest/packages.linux-x64.lock.json | 10 +++++----- util/PerfTest/packages.osx-arm64.lock.json | 10 +++++----- util/PerfTest/packages.win-x64.lock.json | 10 +++++----- util/ReadmeExample/Abbreviated.cs | 2 +- util/ReadmeExample/DistributedCache.cs | 2 +- util/ReadmeExample/HybridCache.cs | 2 +- util/ReadmeExample/ReadmeExample.csproj | 2 +- .../packages.linux-x64.lock.json | 8 ++++---- .../packages.osx-arm64.lock.json | 8 ++++---- util/ReadmeExample/packages.win-x64.lock.json | 8 ++++---- 58 files changed, 134 insertions(+), 134 deletions(-) diff --git a/README.md b/README.md index a19a111..28636e4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -[![CodeCargo.NatsDistributedCache](https://img.shields.io/nuget/v/CodeCargo.NatsDistributedCache?color=516bf1&label=CodeCargo.NatsDistributedCache)](https://www.nuget.org/packages/CodeCargo.NatsDistributedCache/) [![CodeCargo.NatsHybridCache](https://img.shields.io/nuget/v/CodeCargo.NatsHybridCache?color=516bf1&label=CodeCargo.NatsHybridCache)](https://www.nuget.org/packages/CodeCargo.NatsHybridCache/) +[![CodeCargo.Nats.DistributedCache](https://img.shields.io/nuget/v/CodeCargo.Nats.DistributedCache?color=516bf1&label=CodeCargo.Nats.DistributedCache)](https://www.nuget.org/packages/CodeCargo.Nats.DistributedCache/) [![CodeCargo.Nats.HybridCacheExtensions](https://img.shields.io/nuget/v/CodeCargo.Nats.HybridCacheExtensions?color=516bf1&label=CodeCargo.Nats.HybridCacheExtensions)](https://www.nuget.org/packages/CodeCargo.Nats.HybridCacheExtensions/) -# CodeCargo.NatsDistributedCache +# CodeCargo.Nats.DistributedCache ## Overview @@ -20,8 +20,8 @@ A .NET 8+ library for using NATS with `HybridCache` or as an `IDistributedCache` ```bash # add NATS Distributed Cache -dotnet add package CodeCargo.NatsDistributedCache -dotnet add package CodeCargo.NatsHybridCache +dotnet add package CodeCargo.Nats.DistributedCache +dotnet add package CodeCargo.Nats.HybridCacheExtensions # optional - add full NATS.Net (NATS Distributed Cache uses a subset of NATS.Net dependencies) dotnet add package NATS.Net @@ -32,7 +32,7 @@ dotnet add package Microsoft.Extensions.Caching.Hybrid ## Use with `HybridCache` -The `CodeCargo.NatsHybridCache` package provides an extension method that: +The `CodeCargo.Nats.HybridCacheExtensions` package provides an extension method that: 1. Adds the NATS `IDistributedCache` 2. Adds `HybridCache` @@ -41,15 +41,15 @@ The `CodeCargo.NatsHybridCache` package provides an extension method that: ### Install ```bash -dotnet add package CodeCargo.NatsDistributedCache -dotnet add package CodeCargo.NatsHybridCache +dotnet add package CodeCargo.Nats.DistributedCache +dotnet add package CodeCargo.Nats.HybridCacheExtensions dotnet add package NATS.Net ``` ### Example ```csharp -using CodeCargo.NatsHybridCache; +using CodeCargo.Nats.HybridCacheExtensions; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using NATS.Client.Core; @@ -85,14 +85,14 @@ await host.RunAsync(); ### Install ```bash -dotnet add package CodeCargo.NatsDistributedCache +dotnet add package CodeCargo.Nats.DistributedCache dotnet add package NATS.Net ``` ### Example ```csharp -using CodeCargo.NatsDistributedCache; +using CodeCargo.Nats.DistributedCache; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using NATS.Client.Core; diff --git a/src/NatsDistributedCache/NatsCache.Log.cs b/src/NatsDistributedCache/NatsCache.Log.cs index 4e0df5e..da23903 100644 --- a/src/NatsDistributedCache/NatsCache.Log.cs +++ b/src/NatsDistributedCache/NatsCache.Log.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Logging; -namespace CodeCargo.NatsDistributedCache; +namespace CodeCargo.Nats.DistributedCache; public partial class NatsCache { diff --git a/src/NatsDistributedCache/NatsCache.cs b/src/NatsDistributedCache/NatsCache.cs index 61940d6..f0b54dc 100644 --- a/src/NatsDistributedCache/NatsCache.cs +++ b/src/NatsDistributedCache/NatsCache.cs @@ -8,7 +8,7 @@ using NATS.Client.KeyValueStore; using NATS.Net; -namespace CodeCargo.NatsDistributedCache; +namespace CodeCargo.Nats.DistributedCache; /// /// Cache entry for storing in NATS Key-Value Store diff --git a/src/NatsDistributedCache/NatsCacheOptions.cs b/src/NatsDistributedCache/NatsCacheOptions.cs index a5ed557..0f608ad 100644 --- a/src/NatsDistributedCache/NatsCacheOptions.cs +++ b/src/NatsDistributedCache/NatsCacheOptions.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Options; -namespace CodeCargo.NatsDistributedCache +namespace CodeCargo.Nats.DistributedCache { /// /// Configuration options for . diff --git a/src/NatsDistributedCache/NatsDistributedCache.csproj b/src/NatsDistributedCache/NatsDistributedCache.csproj index 0dc25d8..9b99166 100644 --- a/src/NatsDistributedCache/NatsDistributedCache.csproj +++ b/src/NatsDistributedCache/NatsDistributedCache.csproj @@ -3,7 +3,7 @@ true enable - CodeCargo.NatsDistributedCache + CodeCargo.Nats.DistributedCache NATS implementation of IDistributedCache. @@ -14,7 +14,7 @@ CodeCargo CodeCargo Copyright © $([System.DateTime]::Now.Year) CodeCargo - CodeCargo.NatsDistributedCache + CodeCargo.Nats.DistributedCache distributed cache;hybrid cache;nats MIT README.md diff --git a/src/NatsDistributedCache/NatsDistributedCacheExtensions.cs b/src/NatsDistributedCache/NatsDistributedCacheExtensions.cs index 0d04afd..e72f60b 100644 --- a/src/NatsDistributedCache/NatsDistributedCacheExtensions.cs +++ b/src/NatsDistributedCache/NatsDistributedCacheExtensions.cs @@ -5,7 +5,7 @@ using Microsoft.Extensions.Options; using NATS.Client.Core; -namespace CodeCargo.NatsDistributedCache; +namespace CodeCargo.Nats.DistributedCache; /// /// Extension methods for setting up NATS distributed cache related services in an . diff --git a/src/NatsDistributedCache/NatsHybridCacheSerializer.cs b/src/NatsDistributedCache/NatsHybridCacheSerializer.cs index 97e1333..1e66eb7 100644 --- a/src/NatsDistributedCache/NatsHybridCacheSerializer.cs +++ b/src/NatsDistributedCache/NatsHybridCacheSerializer.cs @@ -7,7 +7,7 @@ using Microsoft.Extensions.Caching.Hybrid; using NATS.Client.Core; -namespace CodeCargo.NatsDistributedCache; +namespace CodeCargo.Nats.DistributedCache; public readonly struct NatsHybridCacheSerializer(INatsSerialize serializer, INatsDeserialize deserializer) : IHybridCacheSerializer diff --git a/src/NatsHybridCache/NatsHybridCache.csproj b/src/NatsHybridCache/NatsHybridCache.csproj index c6f122a..aa395d2 100644 --- a/src/NatsHybridCache/NatsHybridCache.csproj +++ b/src/NatsHybridCache/NatsHybridCache.csproj @@ -3,7 +3,7 @@ true enable - CodeCargo.NatsHybridCache + CodeCargo.Nats.HybridCacheExtensions Extensions for using HybridCache with NATS. @@ -14,7 +14,7 @@ CodeCargo CodeCargo Copyright © $([System.DateTime]::Now.Year) CodeCargo - CodeCargo.NatsHybridCache + CodeCargo.Nats.HybridCacheExtensions distributed cache;hybrid cache;nats MIT README.md diff --git a/src/NatsHybridCache/NatsHybridCacheExtensions.cs b/src/NatsHybridCache/NatsHybridCacheExtensions.cs index dc2a4a4..1a6cc88 100644 --- a/src/NatsHybridCache/NatsHybridCacheExtensions.cs +++ b/src/NatsHybridCache/NatsHybridCacheExtensions.cs @@ -1,9 +1,9 @@ -using CodeCargo.NatsDistributedCache; +using CodeCargo.Nats.DistributedCache; using Microsoft.Extensions.Caching.Hybrid; using Microsoft.Extensions.DependencyInjection; using NATS.Client.Core; -namespace CodeCargo.NatsHybridCache; +namespace CodeCargo.Nats.HybridCacheExtensions; /// /// Extension methods for setting up NATS hybrid cache related services in an . diff --git a/src/NatsHybridCache/packages.linux-x64.lock.json b/src/NatsHybridCache/packages.linux-x64.lock.json index d20df63..4863789 100644 --- a/src/NatsHybridCache/packages.linux-x64.lock.json +++ b/src/NatsHybridCache/packages.linux-x64.lock.json @@ -138,7 +138,7 @@ "resolved": "8.0.5", "contentHash": "0f1B50Ss7rqxXiaBJyzUu9bWFOO2/zSlifZ/UNMdiIpDYe4cY4LQQicP4nirK1OS31I43rn062UIJ1Q9bpmHpg==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", diff --git a/src/NatsHybridCache/packages.osx-arm64.lock.json b/src/NatsHybridCache/packages.osx-arm64.lock.json index d20df63..4863789 100644 --- a/src/NatsHybridCache/packages.osx-arm64.lock.json +++ b/src/NatsHybridCache/packages.osx-arm64.lock.json @@ -138,7 +138,7 @@ "resolved": "8.0.5", "contentHash": "0f1B50Ss7rqxXiaBJyzUu9bWFOO2/zSlifZ/UNMdiIpDYe4cY4LQQicP4nirK1OS31I43rn062UIJ1Q9bpmHpg==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", diff --git a/src/NatsHybridCache/packages.win-x64.lock.json b/src/NatsHybridCache/packages.win-x64.lock.json index d20df63..4863789 100644 --- a/src/NatsHybridCache/packages.win-x64.lock.json +++ b/src/NatsHybridCache/packages.win-x64.lock.json @@ -138,7 +138,7 @@ "resolved": "8.0.5", "contentHash": "0f1B50Ss7rqxXiaBJyzUu9bWFOO2/zSlifZ/UNMdiIpDYe4cY4LQQicP4nirK1OS31I43rn062UIJ1Q9bpmHpg==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", diff --git a/test/IntegrationTests/Cache/HybridCacheSetAndRemoveTests.cs b/test/IntegrationTests/Cache/HybridCacheSetAndRemoveTests.cs index bd430c5..b3dd429 100644 --- a/test/IntegrationTests/Cache/HybridCacheSetAndRemoveTests.cs +++ b/test/IntegrationTests/Cache/HybridCacheSetAndRemoveTests.cs @@ -6,7 +6,7 @@ using NATS.Client.KeyValueStore; using NATS.Net; -namespace CodeCargo.NatsDistributedCache.IntegrationTests.Cache; +namespace CodeCargo.Nats.DistributedCache.IntegrationTests.Cache; public class HybridCacheGetSetRemoveTests(NatsIntegrationFixture fixture) : TestBase(fixture) { diff --git a/test/IntegrationTests/Cache/NatsCacheSetAndRemoveTests.cs b/test/IntegrationTests/Cache/NatsCacheSetAndRemoveTests.cs index 3c1eb67..e245e6f 100644 --- a/test/IntegrationTests/Cache/NatsCacheSetAndRemoveTests.cs +++ b/test/IntegrationTests/Cache/NatsCacheSetAndRemoveTests.cs @@ -1,7 +1,7 @@ using System.Text; using Microsoft.Extensions.Caching.Distributed; -namespace CodeCargo.NatsDistributedCache.IntegrationTests.Cache; +namespace CodeCargo.Nats.DistributedCache.IntegrationTests.Cache; public class NatsCacheSetAndRemoveTests(NatsIntegrationFixture fixture) : TestBase(fixture) { diff --git a/test/IntegrationTests/Cache/TimeExpirationAsyncTests.cs b/test/IntegrationTests/Cache/TimeExpirationAsyncTests.cs index 2578c3a..2c63e64 100644 --- a/test/IntegrationTests/Cache/TimeExpirationAsyncTests.cs +++ b/test/IntegrationTests/Cache/TimeExpirationAsyncTests.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Caching.Distributed; -namespace CodeCargo.NatsDistributedCache.IntegrationTests.Cache; +namespace CodeCargo.Nats.DistributedCache.IntegrationTests.Cache; public class TimeExpirationAsyncTests(NatsIntegrationFixture fixture) : TestBase(fixture) { diff --git a/test/IntegrationTests/Cache/TimeExpirationTests.cs b/test/IntegrationTests/Cache/TimeExpirationTests.cs index 1d480e0..8cef9fb 100644 --- a/test/IntegrationTests/Cache/TimeExpirationTests.cs +++ b/test/IntegrationTests/Cache/TimeExpirationTests.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Caching.Distributed; -namespace CodeCargo.NatsDistributedCache.IntegrationTests.Cache; +namespace CodeCargo.Nats.DistributedCache.IntegrationTests.Cache; public class TimeExpirationTests(NatsIntegrationFixture fixture) : TestBase(fixture) { diff --git a/test/IntegrationTests/IntegrationTests.csproj b/test/IntegrationTests/IntegrationTests.csproj index bf450dd..4f76501 100644 --- a/test/IntegrationTests/IntegrationTests.csproj +++ b/test/IntegrationTests/IntegrationTests.csproj @@ -5,7 +5,7 @@ true $(MSBuildProjectDirectory)\..\xunit.runsettings Exe - CodeCargo.NatsDistributedCache.IntegrationTests + CodeCargo.Nats.DistributedCache.IntegrationTests diff --git a/test/IntegrationTests/NatsCollection.cs b/test/IntegrationTests/NatsCollection.cs index 2ff557c..2cd4dc8 100644 --- a/test/IntegrationTests/NatsCollection.cs +++ b/test/IntegrationTests/NatsCollection.cs @@ -1,4 +1,4 @@ -namespace CodeCargo.NatsDistributedCache.IntegrationTests; +namespace CodeCargo.Nats.DistributedCache.IntegrationTests; [CollectionDefinition(Name)] public class NatsCollection : ICollectionFixture diff --git a/test/IntegrationTests/NatsIntegrationFixture.cs b/test/IntegrationTests/NatsIntegrationFixture.cs index bb9c35c..1a079f5 100644 --- a/test/IntegrationTests/NatsIntegrationFixture.cs +++ b/test/IntegrationTests/NatsIntegrationFixture.cs @@ -1,11 +1,11 @@ using Aspire.Hosting; -using CodeCargo.NatsDistributedCache.TestUtils; +using CodeCargo.Nats.DistributedCache.TestUtils; using Microsoft.Extensions.Logging; using NATS.Client.Core; using NATS.Client.KeyValueStore; using NATS.Net; -namespace CodeCargo.NatsDistributedCache.IntegrationTests; +namespace CodeCargo.Nats.DistributedCache.IntegrationTests; /// /// Test fixture that starts an Aspire-hosted NATS server for integration tests diff --git a/test/IntegrationTests/TestBase.cs b/test/IntegrationTests/TestBase.cs index 935ee2f..0104961 100644 --- a/test/IntegrationTests/TestBase.cs +++ b/test/IntegrationTests/TestBase.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; -using CodeCargo.NatsDistributedCache.TestUtils; -using CodeCargo.NatsDistributedCache.TestUtils.Services.Logging; +using CodeCargo.Nats.DistributedCache.TestUtils; +using CodeCargo.Nats.DistributedCache.TestUtils.Services.Logging; using Microsoft.Extensions.Caching.Distributed; using Microsoft.Extensions.Caching.Hybrid; using Microsoft.Extensions.Logging; @@ -8,7 +8,7 @@ using NATS.Client.JetStream.Models; using NATS.Net; -namespace CodeCargo.NatsDistributedCache.IntegrationTests; +namespace CodeCargo.Nats.DistributedCache.IntegrationTests; /// /// Base class for NATS integration tests that provides test output logging and fixture access diff --git a/test/IntegrationTests/packages.linux-x64.lock.json b/test/IntegrationTests/packages.linux-x64.lock.json index 086b1fc..de8d3bd 100644 --- a/test/IntegrationTests/packages.linux-x64.lock.json +++ b/test/IntegrationTests/packages.linux-x64.lock.json @@ -1075,7 +1075,7 @@ "resolved": "16.3.0", "contentHash": "SgMOdxbz8X65z8hraIs6hOEdnkH6hESTAIUa7viEngHOYaH+6q5XJmwr1+yb9vJpNQ19hCQY69xbFsLtXpobQA==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -1084,10 +1084,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } }, @@ -1097,13 +1097,13 @@ "Aspire.Dashboard.Sdk.linux-x64": "[9.2.1, )", "Aspire.Hosting.AppHost": "[9.2.1, )", "Aspire.Hosting.Orchestration.linux-x64": "[9.2.1, )", - "CodeCargo.NatsHybridCache": "[1.0.0, )" + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )" } }, "testutils": { "type": "Project", "dependencies": { - "CodeCargo.NatsHybridCache": "[1.0.0, )", + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )", "Microsoft.Extensions.Logging": "[9.0.4, )", "NATS.Net": "[2.6.0, )", "xunit.v3.assert": "[2.0.2, )", diff --git a/test/IntegrationTests/packages.osx-arm64.lock.json b/test/IntegrationTests/packages.osx-arm64.lock.json index 157193a..6950bca 100644 --- a/test/IntegrationTests/packages.osx-arm64.lock.json +++ b/test/IntegrationTests/packages.osx-arm64.lock.json @@ -1075,7 +1075,7 @@ "resolved": "16.3.0", "contentHash": "SgMOdxbz8X65z8hraIs6hOEdnkH6hESTAIUa7viEngHOYaH+6q5XJmwr1+yb9vJpNQ19hCQY69xbFsLtXpobQA==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -1084,10 +1084,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } }, @@ -1097,13 +1097,13 @@ "Aspire.Dashboard.Sdk.osx-arm64": "[9.2.1, )", "Aspire.Hosting.AppHost": "[9.2.1, )", "Aspire.Hosting.Orchestration.osx-arm64": "[9.2.1, )", - "CodeCargo.NatsHybridCache": "[1.0.0, )" + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )" } }, "testutils": { "type": "Project", "dependencies": { - "CodeCargo.NatsHybridCache": "[1.0.0, )", + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )", "Microsoft.Extensions.Logging": "[9.0.4, )", "NATS.Net": "[2.6.0, )", "xunit.v3.assert": "[2.0.2, )", diff --git a/test/IntegrationTests/packages.win-x64.lock.json b/test/IntegrationTests/packages.win-x64.lock.json index b9bca80..ef0a10a 100644 --- a/test/IntegrationTests/packages.win-x64.lock.json +++ b/test/IntegrationTests/packages.win-x64.lock.json @@ -1075,7 +1075,7 @@ "resolved": "16.3.0", "contentHash": "SgMOdxbz8X65z8hraIs6hOEdnkH6hESTAIUa7viEngHOYaH+6q5XJmwr1+yb9vJpNQ19hCQY69xbFsLtXpobQA==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -1084,10 +1084,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } }, @@ -1097,13 +1097,13 @@ "Aspire.Dashboard.Sdk.win-x64": "[9.2.1, )", "Aspire.Hosting.AppHost": "[9.2.1, )", "Aspire.Hosting.Orchestration.win-x64": "[9.2.1, )", - "CodeCargo.NatsHybridCache": "[1.0.0, )" + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )" } }, "testutils": { "type": "Project", "dependencies": { - "CodeCargo.NatsHybridCache": "[1.0.0, )", + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )", "Microsoft.Extensions.Logging": "[9.0.4, )", "NATS.Net": "[2.6.0, )", "xunit.v3.assert": "[2.0.2, )", diff --git a/test/TestUtils/Assertions/ExceptionAssert.cs b/test/TestUtils/Assertions/ExceptionAssert.cs index 9910482..56a5123 100644 --- a/test/TestUtils/Assertions/ExceptionAssert.cs +++ b/test/TestUtils/Assertions/ExceptionAssert.cs @@ -1,6 +1,6 @@ using Xunit; -namespace CodeCargo.NatsDistributedCache.TestUtils.Assertions; +namespace CodeCargo.Nats.DistributedCache.TestUtils.Assertions; public static class ExceptionAssert { diff --git a/test/TestUtils/NatsTestExtensions.cs b/test/TestUtils/NatsTestExtensions.cs index 8ae547d..0dc7133 100644 --- a/test/TestUtils/NatsTestExtensions.cs +++ b/test/TestUtils/NatsTestExtensions.cs @@ -1,9 +1,9 @@ -using CodeCargo.NatsHybridCache; +using CodeCargo.Nats.HybridCacheExtensions; using Microsoft.Extensions.DependencyInjection; using NATS.Client.Core; using NATS.Client.Hosting; -namespace CodeCargo.NatsDistributedCache.TestUtils; +namespace CodeCargo.Nats.DistributedCache.TestUtils; public static class NatsTestExtensions { diff --git a/test/TestUtils/Services/Logging/TestOutputLogger.cs b/test/TestUtils/Services/Logging/TestOutputLogger.cs index de246db..2ffe069 100644 --- a/test/TestUtils/Services/Logging/TestOutputLogger.cs +++ b/test/TestUtils/Services/Logging/TestOutputLogger.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.Logging; using Xunit; -namespace CodeCargo.NatsDistributedCache.TestUtils.Services.Logging; +namespace CodeCargo.Nats.DistributedCache.TestUtils.Services.Logging; /// /// Extension methods for configuring logging in test context diff --git a/test/TestUtils/TestUtils.csproj b/test/TestUtils/TestUtils.csproj index d98d8b0..f24ebb1 100644 --- a/test/TestUtils/TestUtils.csproj +++ b/test/TestUtils/TestUtils.csproj @@ -1,7 +1,7 @@ - CodeCargo.NatsDistributedCache.TestUtils + CodeCargo.Nats.DistributedCache.TestUtils diff --git a/test/TestUtils/packages.linux-x64.lock.json b/test/TestUtils/packages.linux-x64.lock.json index ee104af..ae9108c 100644 --- a/test/TestUtils/packages.linux-x64.lock.json +++ b/test/TestUtils/packages.linux-x64.lock.json @@ -260,7 +260,7 @@ "Microsoft.Bcl.AsyncInterfaces": "6.0.0" } }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -269,10 +269,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } } diff --git a/test/TestUtils/packages.osx-arm64.lock.json b/test/TestUtils/packages.osx-arm64.lock.json index ee104af..ae9108c 100644 --- a/test/TestUtils/packages.osx-arm64.lock.json +++ b/test/TestUtils/packages.osx-arm64.lock.json @@ -260,7 +260,7 @@ "Microsoft.Bcl.AsyncInterfaces": "6.0.0" } }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -269,10 +269,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } } diff --git a/test/TestUtils/packages.win-x64.lock.json b/test/TestUtils/packages.win-x64.lock.json index ee104af..ae9108c 100644 --- a/test/TestUtils/packages.win-x64.lock.json +++ b/test/TestUtils/packages.win-x64.lock.json @@ -260,7 +260,7 @@ "Microsoft.Bcl.AsyncInterfaces": "6.0.0" } }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -269,10 +269,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } } diff --git a/test/UnitTests/Cache/TimeExpirationAsyncUnitTests.cs b/test/UnitTests/Cache/TimeExpirationAsyncUnitTests.cs index 1875731..2285175 100644 --- a/test/UnitTests/Cache/TimeExpirationAsyncUnitTests.cs +++ b/test/UnitTests/Cache/TimeExpirationAsyncUnitTests.cs @@ -1,7 +1,7 @@ -using CodeCargo.NatsDistributedCache.TestUtils.Assertions; +using CodeCargo.Nats.DistributedCache.TestUtils.Assertions; using Microsoft.Extensions.Caching.Distributed; -namespace CodeCargo.NatsDistributedCache.UnitTests.Cache; +namespace CodeCargo.Nats.DistributedCache.UnitTests.Cache; public class TimeExpirationAsyncUnitTests : TestBase { diff --git a/test/UnitTests/Cache/TimeExpirationUnitTests.cs b/test/UnitTests/Cache/TimeExpirationUnitTests.cs index d2a5f64..689be07 100644 --- a/test/UnitTests/Cache/TimeExpirationUnitTests.cs +++ b/test/UnitTests/Cache/TimeExpirationUnitTests.cs @@ -1,7 +1,7 @@ -using CodeCargo.NatsDistributedCache.TestUtils.Assertions; +using CodeCargo.Nats.DistributedCache.TestUtils.Assertions; using Microsoft.Extensions.Caching.Distributed; -namespace CodeCargo.NatsDistributedCache.UnitTests.Cache; +namespace CodeCargo.Nats.DistributedCache.UnitTests.Cache; public class TimeExpirationUnitTests : TestBase { diff --git a/test/UnitTests/Extensions/NatsDistributedCacheExtensionsTests.cs b/test/UnitTests/Extensions/NatsDistributedCacheExtensionsTests.cs index cf47416..f70bfc4 100644 --- a/test/UnitTests/Extensions/NatsDistributedCacheExtensionsTests.cs +++ b/test/UnitTests/Extensions/NatsDistributedCacheExtensionsTests.cs @@ -5,7 +5,7 @@ using Moq; using NATS.Client.Core; -namespace CodeCargo.NatsDistributedCache.UnitTests.Extensions; +namespace CodeCargo.Nats.DistributedCache.UnitTests.Extensions; public class CacheServiceExtensionsUnitTests { diff --git a/test/UnitTests/Extensions/NatsHybridCacheExtensionsTests.cs b/test/UnitTests/Extensions/NatsHybridCacheExtensionsTests.cs index 29514b5..b7812db 100644 --- a/test/UnitTests/Extensions/NatsHybridCacheExtensionsTests.cs +++ b/test/UnitTests/Extensions/NatsHybridCacheExtensionsTests.cs @@ -1,11 +1,11 @@ -using CodeCargo.NatsHybridCache; +using CodeCargo.Nats.HybridCacheExtensions; using Microsoft.Extensions.Caching.Hybrid; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Moq; using NATS.Client.Core; -namespace CodeCargo.NatsDistributedCache.UnitTests.Extensions; +namespace CodeCargo.Nats.DistributedCache.UnitTests.Extensions; public class NatsHybridCacheExtensionsTests { diff --git a/test/UnitTests/Serialization/NatsHybridCacheSerializerFactoryTests.cs b/test/UnitTests/Serialization/NatsHybridCacheSerializerFactoryTests.cs index 857db36..a823224 100644 --- a/test/UnitTests/Serialization/NatsHybridCacheSerializerFactoryTests.cs +++ b/test/UnitTests/Serialization/NatsHybridCacheSerializerFactoryTests.cs @@ -2,7 +2,7 @@ using Moq; using NATS.Client.Core; -namespace CodeCargo.NatsDistributedCache.UnitTests.Serialization; +namespace CodeCargo.Nats.DistributedCache.UnitTests.Serialization; /// /// Tests for the NatsHybridCacheSerializerFactory diff --git a/test/UnitTests/TestBase.cs b/test/UnitTests/TestBase.cs index 764fd3b..99dc103 100644 --- a/test/UnitTests/TestBase.cs +++ b/test/UnitTests/TestBase.cs @@ -5,7 +5,7 @@ using Moq; using NATS.Client.Core; -namespace CodeCargo.NatsDistributedCache.UnitTests; +namespace CodeCargo.Nats.DistributedCache.UnitTests; public abstract class TestBase { diff --git a/test/UnitTests/UnitTests.csproj b/test/UnitTests/UnitTests.csproj index 3f6dcb5..c531e41 100644 --- a/test/UnitTests/UnitTests.csproj +++ b/test/UnitTests/UnitTests.csproj @@ -5,7 +5,7 @@ true $(MSBuildProjectDirectory)\..\xunit.runsettings Exe - CodeCargo.NatsDistributedCache.UnitTests + CodeCargo.Nats.DistributedCache.UnitTests diff --git a/test/UnitTests/packages.linux-x64.lock.json b/test/UnitTests/packages.linux-x64.lock.json index 5ffc617..be02bd7 100644 --- a/test/UnitTests/packages.linux-x64.lock.json +++ b/test/UnitTests/packages.linux-x64.lock.json @@ -392,7 +392,7 @@ "xunit.v3.runner.common": "[2.0.2]" } }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -401,17 +401,17 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } }, "testutils": { "type": "Project", "dependencies": { - "CodeCargo.NatsHybridCache": "[1.0.0, )", + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )", "Microsoft.Extensions.Logging": "[9.0.4, )", "NATS.Net": "[2.6.0, )", "xunit.v3.assert": "[2.0.2, )", diff --git a/test/UnitTests/packages.osx-arm64.lock.json b/test/UnitTests/packages.osx-arm64.lock.json index 5ffc617..be02bd7 100644 --- a/test/UnitTests/packages.osx-arm64.lock.json +++ b/test/UnitTests/packages.osx-arm64.lock.json @@ -392,7 +392,7 @@ "xunit.v3.runner.common": "[2.0.2]" } }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -401,17 +401,17 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } }, "testutils": { "type": "Project", "dependencies": { - "CodeCargo.NatsHybridCache": "[1.0.0, )", + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )", "Microsoft.Extensions.Logging": "[9.0.4, )", "NATS.Net": "[2.6.0, )", "xunit.v3.assert": "[2.0.2, )", diff --git a/test/UnitTests/packages.win-x64.lock.json b/test/UnitTests/packages.win-x64.lock.json index 5ffc617..be02bd7 100644 --- a/test/UnitTests/packages.win-x64.lock.json +++ b/test/UnitTests/packages.win-x64.lock.json @@ -392,7 +392,7 @@ "xunit.v3.runner.common": "[2.0.2]" } }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -401,17 +401,17 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } }, "testutils": { "type": "Project", "dependencies": { - "CodeCargo.NatsHybridCache": "[1.0.0, )", + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )", "Microsoft.Extensions.Logging": "[9.0.4, )", "NATS.Net": "[2.6.0, )", "xunit.v3.assert": "[2.0.2, )", diff --git a/util/NatsAppHost/NatsAppHost.csproj b/util/NatsAppHost/NatsAppHost.csproj index 4949fee..82557d6 100644 --- a/util/NatsAppHost/NatsAppHost.csproj +++ b/util/NatsAppHost/NatsAppHost.csproj @@ -5,7 +5,7 @@ true Exe - CodeCargo.NatsDistributedCache.NatsAppHost + CodeCargo.Nats.DistributedCache.NatsAppHost diff --git a/util/NatsAppHost/packages.linux-x64.lock.json b/util/NatsAppHost/packages.linux-x64.lock.json index 999a325..f4e32fc 100644 --- a/util/NatsAppHost/packages.linux-x64.lock.json +++ b/util/NatsAppHost/packages.linux-x64.lock.json @@ -734,7 +734,7 @@ "resolved": "16.3.0", "contentHash": "SgMOdxbz8X65z8hraIs6hOEdnkH6hESTAIUa7viEngHOYaH+6q5XJmwr1+yb9vJpNQ19hCQY69xbFsLtXpobQA==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -743,10 +743,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } } diff --git a/util/NatsAppHost/packages.osx-arm64.lock.json b/util/NatsAppHost/packages.osx-arm64.lock.json index 41129ff..00a623f 100644 --- a/util/NatsAppHost/packages.osx-arm64.lock.json +++ b/util/NatsAppHost/packages.osx-arm64.lock.json @@ -734,7 +734,7 @@ "resolved": "16.3.0", "contentHash": "SgMOdxbz8X65z8hraIs6hOEdnkH6hESTAIUa7viEngHOYaH+6q5XJmwr1+yb9vJpNQ19hCQY69xbFsLtXpobQA==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -743,10 +743,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } } diff --git a/util/NatsAppHost/packages.win-x64.lock.json b/util/NatsAppHost/packages.win-x64.lock.json index eb45bef..1347e64 100644 --- a/util/NatsAppHost/packages.win-x64.lock.json +++ b/util/NatsAppHost/packages.win-x64.lock.json @@ -734,7 +734,7 @@ "resolved": "16.3.0", "contentHash": "SgMOdxbz8X65z8hraIs6hOEdnkH6hESTAIUa7viEngHOYaH+6q5XJmwr1+yb9vJpNQ19hCQY69xbFsLtXpobQA==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -743,10 +743,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } } diff --git a/util/PerfTest/PerfTest.cs b/util/PerfTest/PerfTest.cs index 94df899..f2ffaec 100644 --- a/util/PerfTest/PerfTest.cs +++ b/util/PerfTest/PerfTest.cs @@ -1,8 +1,8 @@ using System.Diagnostics; -using CodeCargo.NatsDistributedCache.PerfTest.Utils; +using CodeCargo.Nats.DistributedCache.PerfTest.Utils; using Microsoft.Extensions.Caching.Distributed; -namespace CodeCargo.NatsDistributedCache.PerfTest; +namespace CodeCargo.Nats.DistributedCache.PerfTest; public class PerfTest { diff --git a/util/PerfTest/PerfTest.csproj b/util/PerfTest/PerfTest.csproj index e3d6ad7..2a2e423 100644 --- a/util/PerfTest/PerfTest.csproj +++ b/util/PerfTest/PerfTest.csproj @@ -3,7 +3,7 @@ false Exe - CodeCargo.NatsDistributedCache.PerfTest + CodeCargo.Nats.DistributedCache.PerfTest diff --git a/util/PerfTest/Program.cs b/util/PerfTest/Program.cs index 5e34a8d..bb8c6ab 100644 --- a/util/PerfTest/Program.cs +++ b/util/PerfTest/Program.cs @@ -1,8 +1,8 @@ using Aspire.Hosting.ApplicationModel; using Aspire.Hosting.Testing; -using CodeCargo.NatsDistributedCache; -using CodeCargo.NatsDistributedCache.PerfTest; -using CodeCargo.NatsDistributedCache.TestUtils; +using CodeCargo.Nats.DistributedCache; +using CodeCargo.Nats.DistributedCache.PerfTest; +using CodeCargo.Nats.DistributedCache.TestUtils; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using NATS.Client.Core; diff --git a/util/PerfTest/Utils/StopwatchPool.cs b/util/PerfTest/Utils/StopwatchPool.cs index dd07e4b..7a8896b 100644 --- a/util/PerfTest/Utils/StopwatchPool.cs +++ b/util/PerfTest/Utils/StopwatchPool.cs @@ -1,7 +1,7 @@ using System.Buffers; using System.Diagnostics; -namespace CodeCargo.NatsDistributedCache.PerfTest.Utils +namespace CodeCargo.Nats.DistributedCache.PerfTest.Utils { /// /// Provides a pooled Stopwatch to reduce allocations in performance-critical code diff --git a/util/PerfTest/packages.linux-x64.lock.json b/util/PerfTest/packages.linux-x64.lock.json index 6db67f1..d7c855c 100644 --- a/util/PerfTest/packages.linux-x64.lock.json +++ b/util/PerfTest/packages.linux-x64.lock.json @@ -967,7 +967,7 @@ "resolved": "16.3.0", "contentHash": "SgMOdxbz8X65z8hraIs6hOEdnkH6hESTAIUa7viEngHOYaH+6q5XJmwr1+yb9vJpNQ19hCQY69xbFsLtXpobQA==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -976,10 +976,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } }, @@ -989,13 +989,13 @@ "Aspire.Dashboard.Sdk.linux-x64": "[9.2.1, )", "Aspire.Hosting.AppHost": "[9.2.1, )", "Aspire.Hosting.Orchestration.linux-x64": "[9.2.1, )", - "CodeCargo.NatsHybridCache": "[1.0.0, )" + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )" } }, "testutils": { "type": "Project", "dependencies": { - "CodeCargo.NatsHybridCache": "[1.0.0, )", + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )", "Microsoft.Extensions.Logging": "[9.0.4, )", "NATS.Net": "[2.6.0, )", "xunit.v3.assert": "[2.0.2, )", diff --git a/util/PerfTest/packages.osx-arm64.lock.json b/util/PerfTest/packages.osx-arm64.lock.json index aa0e2bb..3aed346 100644 --- a/util/PerfTest/packages.osx-arm64.lock.json +++ b/util/PerfTest/packages.osx-arm64.lock.json @@ -967,7 +967,7 @@ "resolved": "16.3.0", "contentHash": "SgMOdxbz8X65z8hraIs6hOEdnkH6hESTAIUa7viEngHOYaH+6q5XJmwr1+yb9vJpNQ19hCQY69xbFsLtXpobQA==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -976,10 +976,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } }, @@ -989,13 +989,13 @@ "Aspire.Dashboard.Sdk.osx-arm64": "[9.2.1, )", "Aspire.Hosting.AppHost": "[9.2.1, )", "Aspire.Hosting.Orchestration.osx-arm64": "[9.2.1, )", - "CodeCargo.NatsHybridCache": "[1.0.0, )" + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )" } }, "testutils": { "type": "Project", "dependencies": { - "CodeCargo.NatsHybridCache": "[1.0.0, )", + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )", "Microsoft.Extensions.Logging": "[9.0.4, )", "NATS.Net": "[2.6.0, )", "xunit.v3.assert": "[2.0.2, )", diff --git a/util/PerfTest/packages.win-x64.lock.json b/util/PerfTest/packages.win-x64.lock.json index dc7ae25..7e2c019 100644 --- a/util/PerfTest/packages.win-x64.lock.json +++ b/util/PerfTest/packages.win-x64.lock.json @@ -967,7 +967,7 @@ "resolved": "16.3.0", "contentHash": "SgMOdxbz8X65z8hraIs6hOEdnkH6hESTAIUa7viEngHOYaH+6q5XJmwr1+yb9vJpNQ19hCQY69xbFsLtXpobQA==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -976,10 +976,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } }, @@ -989,13 +989,13 @@ "Aspire.Dashboard.Sdk.win-x64": "[9.2.1, )", "Aspire.Hosting.AppHost": "[9.2.1, )", "Aspire.Hosting.Orchestration.win-x64": "[9.2.1, )", - "CodeCargo.NatsHybridCache": "[1.0.0, )" + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )" } }, "testutils": { "type": "Project", "dependencies": { - "CodeCargo.NatsHybridCache": "[1.0.0, )", + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )", "Microsoft.Extensions.Logging": "[9.0.4, )", "NATS.Net": "[2.6.0, )", "xunit.v3.assert": "[2.0.2, )", diff --git a/util/ReadmeExample/Abbreviated.cs b/util/ReadmeExample/Abbreviated.cs index e0f9fd1..8c6132f 100644 --- a/util/ReadmeExample/Abbreviated.cs +++ b/util/ReadmeExample/Abbreviated.cs @@ -1,4 +1,4 @@ -using CodeCargo.NatsDistributedCache; +using CodeCargo.Nats.DistributedCache; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using NATS.Client.Core; diff --git a/util/ReadmeExample/DistributedCache.cs b/util/ReadmeExample/DistributedCache.cs index 82f7ecf..ea1f1b1 100644 --- a/util/ReadmeExample/DistributedCache.cs +++ b/util/ReadmeExample/DistributedCache.cs @@ -1,6 +1,6 @@ using Aspire.Hosting.ApplicationModel; using Aspire.Hosting.Testing; -using CodeCargo.NatsDistributedCache; +using CodeCargo.Nats.DistributedCache; using Microsoft.Extensions.Caching.Distributed; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; diff --git a/util/ReadmeExample/HybridCache.cs b/util/ReadmeExample/HybridCache.cs index ef22e7c..01c13f6 100644 --- a/util/ReadmeExample/HybridCache.cs +++ b/util/ReadmeExample/HybridCache.cs @@ -1,6 +1,6 @@ using Aspire.Hosting.ApplicationModel; using Aspire.Hosting.Testing; -using CodeCargo.NatsHybridCache; +using CodeCargo.Nats.HybridCacheExtensions; using Microsoft.Extensions.Caching.Hybrid; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; diff --git a/util/ReadmeExample/ReadmeExample.csproj b/util/ReadmeExample/ReadmeExample.csproj index 9cff2a1..b662e78 100644 --- a/util/ReadmeExample/ReadmeExample.csproj +++ b/util/ReadmeExample/ReadmeExample.csproj @@ -3,7 +3,7 @@ false Exe - CodeCargo.NatsDistributedCache.ReadmeExample + CodeCargo.Nats.DistributedCache.ReadmeExample diff --git a/util/ReadmeExample/packages.linux-x64.lock.json b/util/ReadmeExample/packages.linux-x64.lock.json index bc0b728..ece7a0c 100644 --- a/util/ReadmeExample/packages.linux-x64.lock.json +++ b/util/ReadmeExample/packages.linux-x64.lock.json @@ -946,7 +946,7 @@ "resolved": "16.3.0", "contentHash": "SgMOdxbz8X65z8hraIs6hOEdnkH6hESTAIUa7viEngHOYaH+6q5XJmwr1+yb9vJpNQ19hCQY69xbFsLtXpobQA==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -955,10 +955,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } }, @@ -968,7 +968,7 @@ "Aspire.Dashboard.Sdk.linux-x64": "[9.2.1, )", "Aspire.Hosting.AppHost": "[9.2.1, )", "Aspire.Hosting.Orchestration.linux-x64": "[9.2.1, )", - "CodeCargo.NatsHybridCache": "[1.0.0, )" + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )" } } } diff --git a/util/ReadmeExample/packages.osx-arm64.lock.json b/util/ReadmeExample/packages.osx-arm64.lock.json index 16363ed..fac3687 100644 --- a/util/ReadmeExample/packages.osx-arm64.lock.json +++ b/util/ReadmeExample/packages.osx-arm64.lock.json @@ -946,7 +946,7 @@ "resolved": "16.3.0", "contentHash": "SgMOdxbz8X65z8hraIs6hOEdnkH6hESTAIUa7viEngHOYaH+6q5XJmwr1+yb9vJpNQ19hCQY69xbFsLtXpobQA==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -955,10 +955,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } }, @@ -968,7 +968,7 @@ "Aspire.Dashboard.Sdk.osx-arm64": "[9.2.1, )", "Aspire.Hosting.AppHost": "[9.2.1, )", "Aspire.Hosting.Orchestration.osx-arm64": "[9.2.1, )", - "CodeCargo.NatsHybridCache": "[1.0.0, )" + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )" } } } diff --git a/util/ReadmeExample/packages.win-x64.lock.json b/util/ReadmeExample/packages.win-x64.lock.json index fa266c7..8219651 100644 --- a/util/ReadmeExample/packages.win-x64.lock.json +++ b/util/ReadmeExample/packages.win-x64.lock.json @@ -946,7 +946,7 @@ "resolved": "16.3.0", "contentHash": "SgMOdxbz8X65z8hraIs6hOEdnkH6hESTAIUa7viEngHOYaH+6q5XJmwr1+yb9vJpNQ19hCQY69xbFsLtXpobQA==" }, - "CodeCargo.NatsDistributedCache": { + "CodeCargo.Nats.DistributedCache": { "type": "Project", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "[9.0.4, )", @@ -955,10 +955,10 @@ "NATS.Client.KeyValueStore": "[2.6.0, )" } }, - "CodeCargo.NatsHybridCache": { + "CodeCargo.Nats.HybridCacheExtensions": { "type": "Project", "dependencies": { - "CodeCargo.NatsDistributedCache": "[1.0.0, )", + "CodeCargo.Nats.DistributedCache": "[1.0.0, )", "Microsoft.Extensions.Caching.Hybrid": "[9.4.0, )" } }, @@ -968,7 +968,7 @@ "Aspire.Dashboard.Sdk.win-x64": "[9.2.1, )", "Aspire.Hosting.AppHost": "[9.2.1, )", "Aspire.Hosting.Orchestration.win-x64": "[9.2.1, )", - "CodeCargo.NatsHybridCache": "[1.0.0, )" + "CodeCargo.Nats.HybridCacheExtensions": "[1.0.0, )" } } } From b11cab481a8ea0ac47b5b3f1687b31edb1dc97c7 Mon Sep 17 00:00:00 2001 From: Caleb Lloyd Date: Sun, 18 May 2025 22:56:39 -0400 Subject: [PATCH 2/2] rename dir Signed-off-by: Caleb Lloyd --- NatsDistributedCache.sln | 2 +- README.md | 16 +--------------- .../NatsHybridCacheSerializer.cs | 2 +- .../NatsHybridCacheExtensions.cs | 0 .../NatsHybridCacheExtensions.csproj} | 0 .../packages.linux-x64.lock.json | 0 .../packages.osx-arm64.lock.json | 0 .../packages.win-x64.lock.json | 0 test/IntegrationTests/IntegrationTests.csproj | 2 +- test/TestUtils/TestUtils.csproj | 2 +- test/UnitTests/UnitTests.csproj | 2 +- util/NatsAppHost/NatsAppHost.csproj | 2 +- util/ReadmeExample/ReadmeExample.csproj | 2 +- 13 files changed, 8 insertions(+), 22 deletions(-) rename src/{NatsHybridCache => NatsHybridCacheExtensions}/NatsHybridCacheExtensions.cs (100%) rename src/{NatsHybridCache/NatsHybridCache.csproj => NatsHybridCacheExtensions/NatsHybridCacheExtensions.csproj} (100%) rename src/{NatsHybridCache => NatsHybridCacheExtensions}/packages.linux-x64.lock.json (100%) rename src/{NatsHybridCache => NatsHybridCacheExtensions}/packages.osx-arm64.lock.json (100%) rename src/{NatsHybridCache => NatsHybridCacheExtensions}/packages.win-x64.lock.json (100%) diff --git a/NatsDistributedCache.sln b/NatsDistributedCache.sln index 2c0469b..f82a3c9 100644 --- a/NatsDistributedCache.sln +++ b/NatsDistributedCache.sln @@ -23,7 +23,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PerfTest", "util\PerfTest\P EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReadmeExample", "util\ReadmeExample\ReadmeExample.csproj", "{2F16AC9F-97A1-4362-84B4-F03C3EBC6CD6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NatsHybridCache", "src\NatsHybridCache\NatsHybridCache.csproj", "{F95B33FB-37B3-44F4-9E10-55835A527CA3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NatsHybridCacheExtensions", "src\NatsHybridCacheExtensions\NatsHybridCacheExtensions.csproj", "{F95B33FB-37B3-44F4-9E10-55835A527CA3}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/README.md b/README.md index 28636e4..6a66ec4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![CodeCargo.Nats.DistributedCache](https://img.shields.io/nuget/v/CodeCargo.Nats.DistributedCache?color=516bf1&label=CodeCargo.Nats.DistributedCache)](https://www.nuget.org/packages/CodeCargo.Nats.DistributedCache/) [![CodeCargo.Nats.HybridCacheExtensions](https://img.shields.io/nuget/v/CodeCargo.Nats.HybridCacheExtensions?color=516bf1&label=CodeCargo.Nats.HybridCacheExtensions)](https://www.nuget.org/packages/CodeCargo.Nats.HybridCacheExtensions/) -# CodeCargo.Nats.DistributedCache +# NATS Distributed Cache ## Overview @@ -16,20 +16,6 @@ A .NET 8+ library for using NATS with `HybridCache` or as an `IDistributedCache` await kvContext.CreateOrUpdateStoreAsync(new NatsKVConfig("cache") { LimitMarkerTTL = TimeSpan.FromSeconds(1) }); ``` -## Installation - -```bash -# add NATS Distributed Cache -dotnet add package CodeCargo.Nats.DistributedCache -dotnet add package CodeCargo.Nats.HybridCacheExtensions - -# optional - add full NATS.Net (NATS Distributed Cache uses a subset of NATS.Net dependencies) -dotnet add package NATS.Net - -# optional - add HybridCache -dotnet add package Microsoft.Extensions.Caching.Hybrid -``` - ## Use with `HybridCache` The `CodeCargo.Nats.HybridCacheExtensions` package provides an extension method that: diff --git a/src/NatsDistributedCache/NatsHybridCacheSerializer.cs b/src/NatsDistributedCache/NatsHybridCacheSerializer.cs index 1e66eb7..6dff02d 100644 --- a/src/NatsDistributedCache/NatsHybridCacheSerializer.cs +++ b/src/NatsDistributedCache/NatsHybridCacheSerializer.cs @@ -1,5 +1,5 @@ // even though this is an IHybridCacheSerializer, it's included in Microsoft.Extensions.Caching.Abstractions -// so we can include it in the NatsDistributedCache package instead of NatsHybridCache to give library +// so we can include it in the NatsDistributedCache package instead of NatsHybridCacheExtensions to give library // consumers the option to reduce dependencies using System.Buffers; diff --git a/src/NatsHybridCache/NatsHybridCacheExtensions.cs b/src/NatsHybridCacheExtensions/NatsHybridCacheExtensions.cs similarity index 100% rename from src/NatsHybridCache/NatsHybridCacheExtensions.cs rename to src/NatsHybridCacheExtensions/NatsHybridCacheExtensions.cs diff --git a/src/NatsHybridCache/NatsHybridCache.csproj b/src/NatsHybridCacheExtensions/NatsHybridCacheExtensions.csproj similarity index 100% rename from src/NatsHybridCache/NatsHybridCache.csproj rename to src/NatsHybridCacheExtensions/NatsHybridCacheExtensions.csproj diff --git a/src/NatsHybridCache/packages.linux-x64.lock.json b/src/NatsHybridCacheExtensions/packages.linux-x64.lock.json similarity index 100% rename from src/NatsHybridCache/packages.linux-x64.lock.json rename to src/NatsHybridCacheExtensions/packages.linux-x64.lock.json diff --git a/src/NatsHybridCache/packages.osx-arm64.lock.json b/src/NatsHybridCacheExtensions/packages.osx-arm64.lock.json similarity index 100% rename from src/NatsHybridCache/packages.osx-arm64.lock.json rename to src/NatsHybridCacheExtensions/packages.osx-arm64.lock.json diff --git a/src/NatsHybridCache/packages.win-x64.lock.json b/src/NatsHybridCacheExtensions/packages.win-x64.lock.json similarity index 100% rename from src/NatsHybridCache/packages.win-x64.lock.json rename to src/NatsHybridCacheExtensions/packages.win-x64.lock.json diff --git a/test/IntegrationTests/IntegrationTests.csproj b/test/IntegrationTests/IntegrationTests.csproj index 4f76501..892e020 100644 --- a/test/IntegrationTests/IntegrationTests.csproj +++ b/test/IntegrationTests/IntegrationTests.csproj @@ -20,7 +20,7 @@ - + diff --git a/test/TestUtils/TestUtils.csproj b/test/TestUtils/TestUtils.csproj index f24ebb1..2dc585b 100644 --- a/test/TestUtils/TestUtils.csproj +++ b/test/TestUtils/TestUtils.csproj @@ -12,7 +12,7 @@ - + diff --git a/test/UnitTests/UnitTests.csproj b/test/UnitTests/UnitTests.csproj index c531e41..b8a86d7 100644 --- a/test/UnitTests/UnitTests.csproj +++ b/test/UnitTests/UnitTests.csproj @@ -19,7 +19,7 @@ - + diff --git a/util/NatsAppHost/NatsAppHost.csproj b/util/NatsAppHost/NatsAppHost.csproj index 82557d6..2ab3ec7 100644 --- a/util/NatsAppHost/NatsAppHost.csproj +++ b/util/NatsAppHost/NatsAppHost.csproj @@ -9,7 +9,7 @@ - + diff --git a/util/ReadmeExample/ReadmeExample.csproj b/util/ReadmeExample/ReadmeExample.csproj index b662e78..5c9ea40 100644 --- a/util/ReadmeExample/ReadmeExample.csproj +++ b/util/ReadmeExample/ReadmeExample.csproj @@ -12,7 +12,7 @@ - +