debasishg / scala-redis

A scala library for connecting to a redis server, or a cluster of redis nodes using consistent hashing on the client side.
1.02k stars 219 forks source link

Cluster Node command example #155

Closed yookore closed 9 years ago

yookore commented 9 years ago

Hi,

Thanks for this beautiful library.

However, can you show an example of how to send a CLUSTER NODES OR CLUSTER SLOTS command when I get a MOVED 15160 192.168.121.168:6379 from a redis cluster?

Taken from http://redis.io/topics/cluster-spec#moved-redirection

An alternative is to just refresh the whole client-side cluster layout using the CLUSTER NODES or CLUSTER SLOTS commands when a MOVED redirection is received.

yookore commented 9 years ago

Never mind. I simply upgraded to v3.0.

I like your library.