Skip to content

Allow passing a ConnectionMultiplexerFactory or Instance to AddStackExchangeRedisCache #3903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
evilpilaf opened this issue Oct 1, 2021 · 1 comment

Comments

@evilpilaf
Copy link

Currently the implementation for AddStackExchangeRedisCache only lets developers configure a connection string or connection options for setting up the Redis connection, it'd be very useful if it was also possible to pass in a ConnectionMultiplexer instance or factory, dus letting us reuse connections to caches.

This would also let us plug in with OpenTelemetry as it requires a ConnectionMultiplexer object in order to set the telemetry information.

@adityamandaleeka
Copy link
Member

@evilpilaf We added this in .NET 6 Preview 5: dotnet/aspnetcore#32266

@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants