vipshop / hiredis-vip

Support redis cluster. Maintained and used at vipshop.
BSD 3-Clause "New" or "Revised" License
322 stars 173 forks source link

Cluster password support #12

Open gongzhxu opened 8 years ago

gongzhxu commented 8 years ago

how can i auth when i set the password

deep011 commented 8 years ago

Password of redis cluster for hiredis-vip now is not support.

andyli029 commented 7 years ago

the feature is supported : https://github.com/deep011/redis-cluster-tool/pull/5&& vipshop/hiredis-vip#22 @deep011 please review and merge

ridelabs commented 7 years ago

I would love to see this merged to master.

deep011 commented 7 years ago

I think it is better redesign the cluster api to set some options for cluster context, and they may be as the following:

redisClusterContext *redisClusterContextCreate(const char *addrs);
int redisClusterContextSetReadSlave(redisClusterContext *cc, int flags);
int redisClusterContextSetPasswd(redisClusterContext *cc, const char *password);
int redisClusterConnect(redisClusterContext *cc);

I will think over it and finish it recently.

handsomeZWF commented 7 years ago

I am eager for the cluster api supported passwd auth. @deep011 Come On!

Penetrate3D commented 6 years ago

@deep011 did you finish it for api supported passwd auth?

yanpengwang commented 6 years ago

I have one works well so far: https://github.com/yanpengwang/hiredis-vip