2881099 / FreeRedis

🦄 FreeRedis is .NET40+ redis client. supports cluster, sentinel, master-slave, pub-sub, lua, pipeline, transaction, streams, client-side-caching, and pooling.
MIT License
920 stars 164 forks source link

同样的连接配置我在csredis可以使用但是在freeRedis却不可以使用 #159

Open yjqGitHub opened 1 year ago

yjqGitHub commented 1 year ago

"FreeRedis.RedisClientException: All \"clusterConnectionStrings\" failed to connect. ERR This instance has cluster support disabled\r\n at FreeRedis.RedisClient.ClusterAdapter.RefershClusterNodes()\r\n at FreeRedis.RedisClient.ClusterAdapter..ctor(RedisClient topOwner, ConnectionStringBuilder[] clusterConnectionStrings)

代码中创建连接的方式: return new RedisClient(connectionString);

2881099 commented 1 year ago

构造参数有点区别,注意看参数类型,和你的redis模式

yjqGitHub commented 1 year ago

这个加大了我使用的难度,在readme能帮忙加一下说明吗?我可以参考下该怎么使用

yjqGitHub commented 1 year ago

我尝试了example中所有的创建连接方式,但是都还是报同样的错误。

2881099 commented 1 year ago

单机哨兵集群还是什么模式?

错误提示,用了集群模式,但是所提供的连接串都连不通

yjqGitHub commented 1 year ago

我们用的是主备模式,我把它创建对象切换csredis,他就正常访问了。