Nordix / hiredis-cluster

C client library for Valkey/Redis Cluster. This project is used and sponsored by Ericsson. It is a fork of the now unmaintained hiredis-vip.
BSD 3-Clause "New" or "Revised" License
87 stars 42 forks source link

Get from Slaves #131

Closed SS-TruMinds closed 1 year ago

SS-TruMinds commented 1 year ago

Hello,

Is it possible to connect to Slaves in order to perform some GET operations? If yes, how can this be achieved? Also, will we get the connect/disconnect callbacks from the Slaves too? Kindly advise.

Thank you.

zuiderkwast commented 1 year ago

Hi! It's not implemented yet. We have thought about it though.

If we add it, I think it should be with an option so the default will still be to use only masters. If replicas are used, I suppose the callbacks should be called for replicas too, but I haven't though about it much. What do you think?

Are you interested in contributing an implementation?

SS-TruMinds commented 1 year ago

Thank you for the response.

Though not possible at the moment, we will certainly look to contribute whenever we can.