mna / redisc

A Go redis cluster client built on top of redigo.
BSD 3-Clause "New" or "Revised" License
227 stars 35 forks source link

Does it support redis module command? #49

Closed githubname1024 closed 1 year ago

githubname1024 commented 1 year ago

I want to exec redis module command in redis cluster. Does this cluster client support redis module command, for example redisearch? Thank you very much.

mna commented 1 year ago

Hello,

Yes, you can use any command from redis or any module/extension. redisc is only concerned with handling the redis cluster specifics, the connections you get from redisc are ultimately redigo connections (https://pkg.go.dev/github.com/gomodule/redigo/redis), so whatever you can do with redigo (that are valid commands in cluster mode), you can do with redisc.

Have fun! Martin

githubname1024 commented 1 year ago

OK,I got it. Thank you very much.