Skip to content
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

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

Open
yjqGitHub opened this issue Sep 23, 2023 · 5 comments

Comments

@yjqGitHub
Copy link

yjqGitHub commented Sep 23, 2023

"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
Copy link
Owner

2881099 commented Sep 23, 2023

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

@yjqGitHub yjqGitHub reopened this Sep 23, 2023
@yjqGitHub
Copy link
Author

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

@yjqGitHub
Copy link
Author

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

@2881099
Copy link
Owner

2881099 commented Sep 23, 2023

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

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

@yjqGitHub
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants