Aspire.Hosting.Redis (13.5.2)

Published 2026-09-09 02:34:25 +03:30 by kayer

Installation

dotnet nuget add source --name kayer --username your_username --password your_token 
dotnet add package --source kayer --version 13.5.2 Aspire.Hosting.Redis

About this package

Redis® support for Aspire.

Redis hosting integration

Use this integration to model, configure, and orchestrate a Redis resource in an Aspire solution.

Getting started

Add the integration

From your AppHost directory, add the Aspire.Hosting.Redis integration with the Aspire CLI:

aspire add Aspire.Hosting.Redis

Usage example

In the AppHost, add a Redis resource and reference it from another resource with either C# or TypeScript:

C#

var redis = builder.AddRedis("redis");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(redis);

TypeScript

const redis = await builder.addRedis("redis");

const myService = await builder.addNodeApp("myService", "../my-service", "server.js")
                       .withReference(redis);

Connection Properties

When you reference a Redis resource using WithReference, the following connection properties are made available to the consuming project:

Redis

The Redis resource exposes the following connection properties:

Property Name Description
Host The hostname or IP address of the Redis server
Port The port number the Redis server is listening on
Password The password for authentication
Uri The connection URI, with the format redis://:{Password}@{Host}:{Port}

Aspire exposes each property as an environment variable named [RESOURCE]_[PROPERTY]. For instance, the Uri property of a resource called cache becomes CACHE_URI.

Additional documentation

Feedback & contributing

https://github.com/microsoft/aspire

*Redis is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd.

Dependencies

ID Version Target Framework
Aspire.Hosting 13.5.2 net8.0
AspNetCore.HealthChecks.Redis 9.0.0 net8.0
AspNetCore.HealthChecks.Uris 9.0.0 net8.0
Google.Protobuf 3.34.1 net8.0
Grpc.AspNetCore 2.80.0 net8.0
Grpc.Net.ClientFactory 2.80.0 net8.0
Grpc.Tools 2.80.0 net8.0
Humanizer.Core 3.0.10 net8.0
JsonPatch.Net 5.0.2 net8.0
KubernetesClient 19.0.2 net8.0
Microsoft.Extensions.Configuration.Abstractions 10.0.11 net8.0
Microsoft.Extensions.Configuration.Binder 10.0.11 net8.0
Microsoft.Extensions.Configuration.EnvironmentVariables 10.0.11 net8.0
Microsoft.Extensions.DependencyInjection.Abstractions 10.0.11 net8.0
Microsoft.Extensions.Diagnostics.HealthChecks 8.0.30 net8.0
Microsoft.Extensions.FileSystemGlobbing 10.0.11 net8.0
Microsoft.Extensions.Hosting 10.0.11 net8.0
Microsoft.Extensions.Hosting.Abstractions 10.0.11 net8.0
Microsoft.Extensions.Http 10.0.11 net8.0
Microsoft.Extensions.Logging 10.0.11 net8.0
Microsoft.Extensions.Logging.Abstractions 10.0.11 net8.0
Microsoft.Extensions.Options 10.0.11 net8.0
Microsoft.Extensions.Primitives 10.0.11 net8.0
ModelContextProtocol 1.3.0 net8.0
Newtonsoft.Json 13.0.4 net8.0
OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.3 net8.0
OpenTelemetry.Extensions.Hosting 1.15.3 net8.0
Polly.Core 8.6.6 net8.0
Semver 3.0.0 net8.0
StackExchange.Redis 2.13.1 net8.0
StreamJsonRpc 2.25.29 net8.0
System.IO.Hashing 10.0.8 net8.0
System.Text.Json 10.0.11 net8.0
YamlDotNet 16.3.0 net8.0
Details
NuGet
2026-09-09 02:34:25 +03:30
1
Microsoft
89 KiB
Assets (2)
Versions (1) View all
13.5.2 2026-09-09