nginx+lua connect to redis 3.0 cluster

226 views
Skip to first unread message

朱大仙儿

unread,
Jan 10, 2016, 8:24:03 AM1/10/16
to openresty, openresty-en
hi guys

now i am use redis 3.0

redis cluster  

redis-cli -c -p 7000

if i use resty-reids . how can i connect to redis cluster

如果用resty-redis 怎么让lua连接上去呢。

请赐教啊。或是升级一下resty-redis。

拜求




------------------

朱大仙儿

手机:18513379185
微信号:wx23456346
QQ: 23456346

天脉聚源(北京)传媒科技有限公司/互动云研发部

北京市东城区安定门东大街雍和大厦E座8层

 

Aapo Talvensaari

unread,
Jan 11, 2016, 5:17:41 AM1/11/16
to openresty-en, open...@googlegroups.com
On Sunday, 10 January 2016 15:24:03 UTC+2, 朱大仙儿 wrote:
how can i connect to redis cluster

There is now particular support for cluster in lua-resty-redis.

A lot of Redis cluster functionality actually happens on the client.

See this issue:

You can go ahead and implement those missing pieces, but please

It is a quite bit of work, and getting API right is not that simple.

Aapo Talvensaari

unread,
Jan 11, 2016, 5:18:31 AM1/11/16
to openresty-en, open...@googlegroups.com
On Monday, 11 January 2016 12:17:41 UTC+2, Aapo Talvensaari wrote:
On Sunday, 10 January 2016 15:24:03 UTC+2, 朱大仙儿 wrote:
how can i connect to redis cluster

There is now particular support for cluster in lua-resty-redis.

I meant "There is _NO_ particular support for cluster in lua-resty-redis."
Reply all
Reply to author
Forward
0 new messages