Skip to content

Commit 7c75462

Browse files
Merge branch 'master' into DOC-4733-geo-index-examples
2 parents 0cb82dc + 4871169 commit 7c75462

File tree

205 files changed

+18749
-14381
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+18749
-14381
lines changed

.github/actions/run-tests/action.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ runs:
2424
using: "composite"
2525
steps:
2626
- uses: actions/checkout@v4
27-
28-
- name: Install .NET Core
27+
28+
- name: Install .NET Core
2929
uses: actions/setup-dotnet@v4
3030
with:
31-
dotnet-version: ${{inputs.dotnet-version}}
31+
dotnet-version: |
32+
9.0.x
33+
${{inputs.dotnet-version}}
3234
dotnet-quality: 'ga'
3335

3436
- name: Setup Environment variables and run Redis
@@ -51,8 +53,8 @@ runs:
5153
5254
# Mapping of redis version to stack version
5355
declare -A redis_stack_version_mapping=(
54-
["7.4.1"]="rs-7.4.0-v1"
55-
["7.2.6"]="rs-7.2.0-v13"
56+
["7.4.1"]="rs-7.4.0-v5"
57+
["7.2.6"]="rs-7.2.0-v17"
5658
["6.2.16"]="rs-6.2.6-v17"
5759
)
5860

.github/workflows/integration.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717

1818
env:
1919
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
20-
CURRENT_REDIS_VERSION: '7.4.1'
20+
CURRENT_REDIS_VERSION: '8.0.2'
2121

2222
jobs:
2323
redis_version:
@@ -37,8 +37,8 @@ jobs:
3737
max-parallel: 15
3838
fail-fast: false
3939
matrix:
40-
redis-version: [ '8.0-M04-pre', '${{ needs.redis_version.outputs.CURRENT }}', '7.2.6', '6.2.16']
41-
dotnet-version: ['6.0', '7.0', '8.0']
40+
redis-version: [ '8.2.1', '${{ needs.redis_version.outputs.CURRENT }}', '7.4.1', '7.2.6', '6.2.16']
41+
dotnet-version: ['8.0', '9.0']
4242
env:
4343
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
4444
name: Redis ${{ matrix.redis-version }}; .NET ${{ matrix.dotnet-version }};
@@ -59,7 +59,7 @@ jobs:
5959
strategy:
6060
fail-fast: false
6161
matrix:
62-
redis-stack-version: ['6.2.6-v18', '7.2.0-v14', '7.4.0-v2']
62+
redis-stack-version: ['6.2.6-v18', '7.2.0-v17', '7.4.0-v6']
6363
env:
6464
redis_stack_version: ${{matrix.redis-stack-version}}
6565
USER_NAME: ${{ secrets.USER_NAME }}

.github/workflows/nuget-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12-
- name: Set up .NET Core 8
12+
- name: Set up .NET 9
1313
uses: actions/setup-dotnet@v3
1414
with:
15-
dotnet-version: 8
15+
dotnet-version: 9
1616
- name: Check .NET version
1717
run: dotnet --version
1818
- name: Check .NET SDKs

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,3 +410,8 @@ tests/NRedisStack.Tests/redis_credentials/redis_user.crt
410410
# global.json
411411
global.json
412412
tests/NRedisStack.Tests/lcov.net8.0.info
413+
414+
# docker containers
415+
tests/dockers/cluster/
416+
tests/dockers/standalone/
417+
tests/dockers/all/

Directory.Build.props

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<Project>
2+
<PropertyGroup>
3+
<Copyright>2022- Redis, inc.</Copyright>
4+
<Nullable>enable</Nullable>
5+
<LangVersion>13</LangVersion>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Authors>Redis Open Source</Authors>
8+
<Owners>Redis OSS</Owners>
9+
<Description>.Net Client for Redis Stack</Description>
10+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
11+
<RepositoryType>git</RepositoryType>
12+
<RepositoryUrl>https://github.com/redis/nRedisStack/</RepositoryUrl>
13+
<PackageReleaseNotes>https://github.com/redis/NRedisStack/releases</PackageReleaseNotes>
14+
<PackageProjectUrl>https://redis.io/docs/latest/develop/clients/dotnet/</PackageProjectUrl>
15+
<Deterministic>false</Deterministic>
16+
<DebugSymbols>true</DebugSymbols>
17+
<DebugType>embedded</DebugType>
18+
<DefaultLanguage>en-US</DefaultLanguage>
19+
<IncludeSymbols>false</IncludeSymbols>
20+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
21+
<CheckEolTargetFramework>false</CheckEolTargetFramework>
22+
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
23+
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
24+
<SuppressTfmSupportBuildErrors>true</SuppressTfmSupportBuildErrors>
25+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
26+
<NoWarn>$(NoWarn);CS1591</NoWarn>
27+
<IsWindows>$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::get_Windows())))</IsWindows>
28+
</PropertyGroup>
29+
30+
<!-- release builds should be deterministic for packaging -->
31+
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
32+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
33+
<Deterministic>true</Deterministic>
34+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
35+
</PropertyGroup>
36+
<ItemGroup Condition="'$(Configuration)' == 'Release' and '$(SourceRoot)'==''">
37+
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/>
38+
</ItemGroup>
39+
40+
<ItemGroup>
41+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" IncludeAssets="runtime; build; native; contentfiles; analyzers"/>
42+
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/>
43+
<!--<PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="all"/>-->
44+
</ItemGroup>
45+
</Project>

Directory.Packages.props

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<Project>
2+
<ItemGroup>
3+
<!-- core build -->
4+
<PackageVersion Include="Microsoft.CSharp" Version="4.7.0" />
5+
<PackageVersion Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" />
6+
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
7+
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.7.115" />
8+
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="4.14.0">
9+
<PrivateAssets>all</PrivateAssets>
10+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
11+
</PackageVersion>
12+
<!-- primary library -->
13+
<PackageVersion Include="NetTopologySuite" Version="2.6.0" />
14+
<PackageVersion Include="System.Text.Json" Version="9.0.7" />
15+
<PackageVersion Include="StackExchange.Redis" Version="2.9.17" />
16+
<!-- tests, etc -->
17+
<PackageVersion Include="BouncyCastle.Cryptography" Version="2.6.1" />
18+
<PackageVersion Include="coverlet.collector" Version="6.0.4" />
19+
<PackageVersion Include="coverlet.msbuild" Version="6.0.4" />
20+
<PackageVersion Include="dotenv.net" Version="4.0.0" />
21+
<PackageVersion Include="GitHubActionsTestLogger" Version="2.4.1" />
22+
<PackageVersion Include="Microsoft.Azure.StackExchangeRedis" Version="3.2.1" />
23+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
24+
<PackageVersion Include="Validation" Version="2.6.68" />
25+
<PackageVersion Include="xunit" Version="2.9.3" />
26+
<PackageVersion Include="xunit.assert" Version="2.9.3" />
27+
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.3">
28+
<PrivateAssets>all</PrivateAssets>
29+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
30+
</PackageVersion>
31+
<PackageVersion Include="Xunit.SkippableFact" Version="1.5.23" />
32+
</ItemGroup>
33+
</Project>

NRedisStack.sln

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NRedisStack.Tests", "tests\
99
EndProject
1010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Doc", "tests\Doc\Doc.csproj", "{F14F6342-14A0-4DDD-AB05-C425B1AD8001}"
1111
EndProject
12+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{84D6210F-9A65-427A-965F-57E7B76424AB}"
13+
ProjectSection(SolutionItems) = preProject
14+
Directory.Build.props = Directory.Build.props
15+
Directory.Packages.props = Directory.Packages.props
16+
global.json = global.json
17+
version.json = version.json
18+
EndProjectSection
19+
EndProject
1220
Global
1321
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1422
Debug|Any CPU = Debug|Any CPU

NRedisStack.sln.DotSettings

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:Boolean x:Key="/Default/UserDictionary/Words/=geoshape/@EntryIndexedValue">True</s:Boolean>
3+
<s:Boolean x:Key="/Default/UserDictionary/Words/=hnsw/@EntryIndexedValue">True</s:Boolean>
4+
<s:Boolean x:Key="/Default/UserDictionary/Words/=indexempty/@EntryIndexedValue">True</s:Boolean>
5+
<s:Boolean x:Key="/Default/UserDictionary/Words/=indexmissing/@EntryIndexedValue">True</s:Boolean>
6+
<s:Boolean x:Key="/Default/UserDictionary/Words/=ismissing/@EntryIndexedValue">True</s:Boolean>
7+
<s:Boolean x:Key="/Default/UserDictionary/Words/=vamana/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@ This project builds on [StackExchange.Redis](https://github.com/StackExchange/St
1414

1515
## How do I Redis?
1616

17-
[Learn for free at Redis University](https://university.redis.com/)
17+
[Learn for free at Redis University](https://university.redis.io/academy/)
1818

19-
[Build faster with the Redis Launchpad](https://launchpad.redis.com/)
19+
[Try the Redis Cloud](https://redis.io/try-free/)
2020

21-
[Try the Redis Cloud](https://redis.com/try-free/)
21+
[Dive in developer tutorials](https://redis.io/learn/)
2222

23-
[Dive in developer tutorials](https://developer.redis.com/)
23+
[Join the Redis community](https://redis.io/community/)
2424

25-
[Join the Redis community](https://redis.com/community/)
26-
27-
[Work at Redis](https://redis.com/company/careers/jobs/)
25+
[Work at Redis](https://redis.io/careers/jobs/)
2826

2927
## API
3028

@@ -40,8 +38,9 @@ Each module has a command class with its own commands.
4038

4139
The supported modules are [Search](https://redis.io/commands/?group=search), [JSON](https://redis.io/commands/?group=json), [TimeSeries](https://redis.io/commands/?group=timeseries), [Bloom Filter](https://redis.io/commands/?group=bf), [Cuckoo Filter](https://redis.io/commands/?group=cf), [T-Digest](https://redis.io/commands/?group=tdigest), [Count-min Sketch](https://redis.io/commands/?group=cms), and [Top-K](https://redis.io/commands/?group=topk).
4240

43-
**Note:** RedisGraph support has been deprecated starting from Redis Stack version 7.2. For more information, please refer to [this blog post](https://redis.com/blog/redisgraph-eol/).
44-
**IMPORTANT:** NRedisStack will end the support for Graph functionalities with version 0.13.x
41+
**Note:** RedisGraph support has been deprecated starting from Redis Stack version 7.2. For more information, please refer to [this blog post](https://redis.com/blog/redisgraph-eol/).<br>
42+
**IMPORTANT:** NRedisStack will end the support for Graph functionalities with version 0.13.x<br>
43+
**IMPORTANT:** Starting from version **1.0.0-beta1**, by default, the client now overrides the [server-side dialect](https://redis.io/docs/latest/develop/interact/search-and-query/advanced-concepts/dialects/) with version 2, automatically appending `DIALECT 2` to commands like **FT.AGGREGATE** and **FT.SEARCH**. Be aware that the query dialect may impact the results returned. If needed, you can revert to a different dialect version by configuring the client accordingly. Please see [release notes](https://github.com/redis/NRedisStack/releases/tag/v1.0.0-beta1).
4544

4645
# Usage
4746

@@ -57,18 +56,20 @@ dotnet add package NRedisStack
5756

5857
### Supported Redis versions
5958

60-
The most recent version of this library supports Redis version [6.2](https://github.com/redis/redis/blob/6.2/00-RELEASENOTES), [7.2](https://github.com/redis/redis/blob/7.2/00-RELEASENOTES).
59+
The most recent version of this library supports Redis version
60+
[7.2](https://github.com/redis/redis/blob/7.2/00-RELEASENOTES),
61+
[7.4](https://github.com/redis/redis/blob/7.4/00-RELEASENOTES),
62+
[8.0](https://github.com/redis/redis/blob/8.0/00-RELEASENOTES) and
63+
[8.2](https://github.com/redis/redis/blob/8.2/00-RELEASENOTES).
6164

6265
### Starting Redis
6366

6467
Before writing any code, you'll need a Redis instance with the appropriate Redis modules. The quickest way to get this is with Docker:
6568

6669
```sh
67-
docker run -p 6379:6379 --name redis-stack redis/redis-stack:latest
70+
docker run -p 6379:6379 --name redis redis:latest
6871
```
6972

70-
This launches [Redis Stack](https://redis.io/docs/stack/), an extension of Redis that adds modern data structures to Redis.
71-
7273
Now, you need to connect to Redis, exactly the same way you do it in [StackExchange.Redis](https://github.com/StackExchange/StackExchange.Redis):
7374
```csharp
7475
using NRedisStack;
@@ -88,7 +89,6 @@ TdigestCommands tdigest = db.TDIGEST();
8889
SearchCommands ft = db.FT();
8990
JsonCommands json = db.JSON();
9091
TimeSeriesCommands ts = db.TS();
91-
GraphCommands graph = db.GRAPH(); // If Redis version is less than 7.2 and NRedisStack version is less than 0.13.x
9292
```
9393
Then, that variable will allow you to call all the commands of that module.
9494

Redis.png

954 Bytes
Loading

0 commit comments

Comments
 (0)