diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml
index da0bc602..67a1b631 100644
--- a/.github/actions/run-tests/action.yml
+++ b/.github/actions/run-tests/action.yml
@@ -24,11 +24,13 @@ runs:
using: "composite"
steps:
- uses: actions/checkout@v4
-
- - name: Install .NET Core
+
+ - name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
- dotnet-version: ${{inputs.dotnet-version}}
+ dotnet-version: |
+ 9.0.x
+ ${{inputs.dotnet-version}}
dotnet-quality: 'ga'
- name: Setup Environment variables and run Redis
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index b88904bc..a023e6e3 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -38,7 +38,7 @@ jobs:
fail-fast: false
matrix:
redis-version: [ '8.2-rc2-pre', '${{ needs.redis_version.outputs.CURRENT }}', '7.4.1', '7.2.6', '6.2.16']
- dotnet-version: ['6.0', '7.0', '8.0']
+ dotnet-version: ['8.0', '9.0']
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
name: Redis ${{ matrix.redis-version }}; .NET ${{ matrix.dotnet-version }};
diff --git a/Directory.Build.props b/Directory.Build.props
new file mode 100644
index 00000000..80453fb9
--- /dev/null
+++ b/Directory.Build.props
@@ -0,0 +1,45 @@
+
+
+ 2022- Redis, inc.
+ enable
+ 13
+ enable
+ Redis Open Source
+ Redis OSS
+ .Net Client for Redis Stack
+ MIT
+ git
+ https://github.com/redis/nRedisStack/
+ https://github.com/redis/NRedisStack/releases
+ https://redis.io/docs/latest/develop/clients/dotnet/
+ false
+ true
+ embedded
+ en-US
+ false
+ true
+ false
+ true
+ true
+ true
+ true
+ $(NoWarn);CS1591
+ $([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::get_Windows())))
+
+
+
+
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Directory.Packages.props b/Directory.Packages.props
new file mode 100644
index 00000000..aa207a94
--- /dev/null
+++ b/Directory.Packages.props
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
+
\ No newline at end of file
diff --git a/NRedisStack.sln b/NRedisStack.sln
index 5a395f10..045e7015 100644
--- a/NRedisStack.sln
+++ b/NRedisStack.sln
@@ -9,6 +9,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NRedisStack.Tests", "tests\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Doc", "tests\Doc\Doc.csproj", "{F14F6342-14A0-4DDD-AB05-C425B1AD8001}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{84D6210F-9A65-427A-965F-57E7B76424AB}"
+ ProjectSection(SolutionItems) = preProject
+ Directory.Build.props = Directory.Build.props
+ Directory.Packages.props = Directory.Packages.props
+ global.json = global.json
+ version.json = version.json
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
diff --git a/NRedisStack.sln.DotSettings b/NRedisStack.sln.DotSettings
new file mode 100644
index 00000000..a53aa8e9
--- /dev/null
+++ b/NRedisStack.sln.DotSettings
@@ -0,0 +1,7 @@
+
+ True
+ True
+ True
+ True
+ True
+ True
\ No newline at end of file
diff --git a/Redis.png b/Redis.png
new file mode 100644
index 00000000..bafa2f6d
Binary files /dev/null and b/Redis.png differ
diff --git a/src/NRedisStack/Auxiliary.cs b/src/NRedisStack/Auxiliary.cs
index c336431d..33b7857b 100644
--- a/src/NRedisStack/Auxiliary.cs
+++ b/src/NRedisStack/Auxiliary.cs
@@ -54,8 +54,8 @@ internal static void SetInfoInPipeline(this IDatabase db)
{
_setInfo = false;
if (_libraryName == null) return;
- Pipeline pipeline = new Pipeline(db);
- _ = pipeline.Db.ClientSetInfoAsync(SetInfoAttr.LibraryName, _libraryName!);
+ Pipeline pipeline = new(db);
+ _ = pipeline.Db.ClientSetInfoAsync(SetInfoAttr.LibraryName, _libraryName);
_ = pipeline.Db.ClientSetInfoAsync(SetInfoAttr.LibraryVersion, GetNRedisStackVersion());
pipeline.Execute();
}
diff --git a/src/NRedisStack/Bloom/BloomCommandBuilder.cs b/src/NRedisStack/Bloom/BloomCommandBuilder.cs
index 49544b7c..ffb4d162 100644
--- a/src/NRedisStack/Bloom/BloomCommandBuilder.cs
+++ b/src/NRedisStack/Bloom/BloomCommandBuilder.cs
@@ -7,22 +7,22 @@ public static class BloomCommandBuilder
{
public static SerializedCommand Add(RedisKey key, RedisValue item)
{
- return new SerializedCommand(BF.ADD, key, item);
+ return new(BF.ADD, key, item);
}
public static SerializedCommand Card(RedisKey key)
{
- return new SerializedCommand(BF.CARD, key);
+ return new(BF.CARD, key);
}
public static SerializedCommand Exists(RedisKey key, RedisValue item)
{
- return new SerializedCommand(BF.EXISTS, key, item);
+ return new(BF.EXISTS, key, item);
}
public static SerializedCommand Info(RedisKey key)
{
- return new SerializedCommand(BF.INFO, key);
+ return new(BF.INFO, key);
}
public static SerializedCommand Insert(RedisKey key, RedisValue[] items, int? capacity = null,
@@ -34,12 +34,12 @@ public static SerializedCommand Insert(RedisKey key, RedisValue[] items, int? ca
var args = BloomAux.BuildInsertArgs(key, items, capacity, error, expansion, nocreate, nonscaling);
- return new SerializedCommand(BF.INSERT, args);
+ return new(BF.INSERT, args);
}
public static SerializedCommand LoadChunk(RedisKey key, long iterator, Byte[] data)
{
- return new SerializedCommand(BF.LOADCHUNK, key, iterator, data);
+ return new(BF.LOADCHUNK, key, iterator, data);
}
public static SerializedCommand MAdd(RedisKey key, params RedisValue[] items)
@@ -47,10 +47,10 @@ public static SerializedCommand MAdd(RedisKey key, params RedisValue[] items)
if (items.Length < 1)
throw new ArgumentOutOfRangeException(nameof(items));
- List