about AddRedis #2045
Answered
by
davidfowl
1996-Chinese-Chen
asked this question in
Q&A
about AddRedis
#2045
-
Why can’t I specify the redis connection string in AddRedis after the update? |
Beta Was this translation helpful? Give feedback.
Answered by
davidfowl
Feb 2, 2024
Replies: 1 comment 2 replies
-
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. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
davidfowl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
It'll look for a connection string in configuration.