Skip to content

about AddRedis #2045

Feb 2, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Can you provide more details? Ah you mean AddRedis(name, connectionString). We removed these overloads and are reworking the how connection strings work. It'll change in the next 2 previews.

For now you can do this:

var cs = new ConnectionString("redis");

builder.AddProject<P1>("api").WithReference(cs);

It'll look for a connection string in configuration.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@1996-Chinese-Chen
Comment options

@1996-Chinese-Chen
Comment options

Answer selected by davidfowl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
2 participants
Converted from issue

This discussion was converted from issue #2041 on February 02, 2024 08:05.