Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.x
10.0.x
${{inputs.dotnet-version}}
dotnet-quality: 'ga'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fail-fast: false
matrix:
redis-version: [ '8.6', '8.4', '8.2', '7.4', '7.2', '6.2']
dotnet-version: ['8.0', '9.0']
dotnet-version: ['8.0', '9.0', '10.0']
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
name: Redis ${{ matrix.redis-version }}; .NET ${{ matrix.dotnet-version }};
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<Copyright>2022- Redis, inc.</Copyright>
<Nullable>enable</Nullable>
<LangVersion>13</LangVersion>
<LangVersion>14</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Authors>Redis Open Source</Authors>
<Owners>Redis OSS</Owners>
Expand Down
2 changes: 2 additions & 0 deletions NRedisStack.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{84D6210F
global.json = global.json
version.json = version.json
tests\dockers\docker-compose.yml = tests\dockers\docker-compose.yml
.github\actions\run-tests\action.yml = .github\actions\run-tests\action.yml
.github\workflows\integration.yml = .github\workflows\integration.yml
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "docs", "docs\docs.csproj", "{4A35FC3C-69BC-4BDB-A4B2-6BFD0DF215AD}"
Expand Down
2 changes: 1 addition & 1 deletion src/NRedisStack/NRedisStack.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net7.0;net8.0;netstandard2.0;net481</TargetFrameworks>
<TargetFrameworks>net6.0;net8.0;net10.0;netstandard2.0;net481</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>Redis.png</PackageIcon>
Expand Down
2 changes: 1 addition & 1 deletion tests/NRedisStack.Tests/NRedisStack.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0;net481</TargetFrameworks>
<TargetFrameworks>net6.0;net8.0;net9.0;net10.0;net481</TargetFrameworks>
<IsPackable>false</IsPackable>
<PreserveCompilationContext>true</PreserveCompilationContext>
</PropertyGroup>
Expand Down
10 changes: 6 additions & 4 deletions tests/NRedisStack.Tests/TopK/TopKTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ public void CreateTopKFilter(string endpointId)

var res = topk.Add(key, "bb", "cc");
Assert.True(res![0].IsNull && res[1].IsNull);
// ReSharper disable once UseCollectionExpression - need to avoid span overload due to TFMs
Assert.Equal(topk.Query(key, "bb", "gg", "cc"), new[] { true, false, true });
Assert.False(topk.Query(key, "notExists"));

Assert.Equal(topk.Count(key, "bb", "gg", "cc"), [1, 0, 1]);
// ReSharper disable once UseCollectionExpression - need to avoid span overload due to TFMs
Assert.Equal(topk.Count(key, "bb", "gg", "cc"), new[] { 1L, 0L, 1L });

var res2 = topk.List(key);
Assert.Equal("bb", res2[0].ToString());
Expand Down Expand Up @@ -62,10 +63,11 @@ public async Task CreateTopKFilterAsync(string endpointId)
var res = await topk.AddAsync(key, "bb", "cc");
Assert.True(res![0].IsNull && res[1].IsNull);

// ReSharper disable once UseCollectionExpression - need to avoid span overload due to TFMs
Assert.Equal(await topk.QueryAsync(key, "bb", "gg", "cc"), new[] { true, false, true });
Assert.False(await topk.QueryAsync(key, "notExists"));

Assert.Equal(await topk.CountAsync(key, "bb", "gg", "cc"), [1, 0, 1]);
// ReSharper disable once UseCollectionExpression - need to avoid span overload due to TFMs
Assert.Equal(await topk.CountAsync(key, "bb", "gg", "cc"), new[] { 1L, 0L, 1L });

var res2 = await topk.ListAsync(key);
Assert.Equal("bb", res2[0].ToString());
Expand Down