Ruvio.Client.AspNetCore
0.2.3
See the version list below for details.
dotnet add package Ruvio.Client.AspNetCore --version 0.2.3
NuGet\Install-Package Ruvio.Client.AspNetCore -Version 0.2.3
<PackageReference Include="Ruvio.Client.AspNetCore" Version="0.2.3" />
<PackageVersion Include="Ruvio.Client.AspNetCore" Version="0.2.3" />
<PackageReference Include="Ruvio.Client.AspNetCore" />
paket add Ruvio.Client.AspNetCore --version 0.2.3
#r "nuget: Ruvio.Client.AspNetCore, 0.2.3"
#:package Ruvio.Client.AspNetCore@0.2.3
#addin nuget:?package=Ruvio.Client.AspNetCore&version=0.2.3
#tool nuget:?package=Ruvio.Client.AspNetCore&version=0.2.3
Ruvio.Client.AspNetCore
Registers Ruvio.Client in an ASP.NET Core service collection. The client speaks RESP2 and does not send CLIENT SETINFO. The TCP connection opens when dependency injection creates RuvioClient, which is a singleton.
builder.Services.AddRuvioClient("127.0.0.1", 6379, database: 2);
With options:
builder.Services.AddRuvioClient(options =>
{
options.Host = "127.0.0.1";
options.Port = 6379;
options.Database = 2;
});
Configuration section:
builder.Services.AddRuvioClient(builder.Configuration.GetSection("Ruvio"));
{
"Ruvio": {
"Host": "127.0.0.1",
"Port": 6379,
"Database": 2
}
}
Connect sends CLUSTER SLOTS and, on a sharded server, routes by hash slot. Database 0 sends nothing after that; any other index sends SELECT on a standalone server. Cluster mode has only database 0. The registered client stays on that database unless code calls SelectAsync, which changes it for every consumer of the singleton.
Inject RuvioClient. Resolve it once at startup if the process should fail before it accepts traffic:
app.Services.GetRequiredService<RuvioClient>();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Ruvio.Client (>= 0.2.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.13 | 90 | 10/5/2026 |
| 0.2.12 | 82 | 10/2/2026 |
| 0.2.11 | 87 | 10/2/2026 |
| 0.2.10 | 85 | 10/2/2026 |
| 0.2.9 | 79 | 10/2/2026 |
| 0.2.8 | 81 | 10/1/2026 |
| 0.2.7 | 84 | 9/30/2026 |
| 0.2.6 | 91 | 9/26/2026 |
| 0.2.5 | 84 | 9/26/2026 |
| 0.2.4 | 86 | 9/26/2026 |
| 0.2.3 | 89 | 9/26/2026 |
| 0.2.2 | 88 | 9/25/2026 |
| 0.2.1 | 94 | 9/25/2026 |
| 0.2.0 | 89 | 9/25/2026 |
| 0.1.0 | 93 | 9/23/2026 |