如何在SignalR.Redis(2.2)中使用StackExchange.Redis ConnectionMultiplexer [英] How to use StackExchange.Redis ConnectionMultiplexer with SignalR.Redis (2.2)
问题描述
当前SignalR.Redis使用的是Bookleeve.
但是,SignalR.Redis现在已经迁移到StackExchange.Redis,而不是signalR.Redis(2.2 Dev分支)中的Bookleave.
在升级到2.2之后,我们仍然可以使用相同的代码指定单个Redis服务器:
GlobalHost.DependencyResolver.UseRedis("localhost",6379,string.Empty,"myApp");
但是,我现在想知道如何使用ConnectionMultiplexer(可在StackExchange.Redis中使用)通过SignalR.Redis指定多个服务器(而不是仅指定一个服务器).
此处的答案:将SignalR与使用BookSleeve的ConnectionUtils.Connect()进行Redis消息总线故障转移已将我带往正确的方向,但是我对如何实现它感到困惑.
非常感谢您的帮助.
无法在SignalR 2.2上指定ConnectionMultiplex. 我在这里打开了一个问题 https://github.com/SignalR/SignalR/issues/3383
,我正在为回购创建PR.达米安(Damian)将里程碑2.2.2标记为该问题,希望很快会发布(当然我必须先发送PR)
.u
Currently SignalR.Redis is using Booksleeve.
However, SignalR.Redis has now migrated to StackExchange.Redis instead of Booksleave in the signalR.Redis (2.2 Dev Branch).
We can still specify a single Redis server using the same code after upgrading to 2.2:
GlobalHost.DependencyResolver.UseRedis("localhost", 6379, string.Empty, "myApp");
However, I am now wondering how I can use the ConnectionMultiplexer (available in StackExchange.Redis) to specify multiple servers with SignalR.Redis (instead of specifying just one single server).
The answer here: Using SignalR with Redis messagebus failover using BookSleeve's ConnectionUtils.Connect() has taken me in the right direction, however I am confused as to how I implement it.
Any help is very much appreciated.
there is not possible to specify a ConnectionMultiplex on SignalR 2.2. I opened an issue about that here https://github.com/SignalR/SignalR/issues/3383
and I'm creating a PR to the repo. Damian marked that issue for the milestone 2.2.1, hopefully will be released soon (of course I've to send the PR first)
.u
这篇关于如何在SignalR.Redis(2.2)中使用StackExchange.Redis ConnectionMultiplexer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!