xetorthio/jedis — pull request #581 by HeartSaVioR (2014-03-10 02:09:04+00:00)
Title: Implements undocumented jedis cluster commands

PR is based on https://groups.google.com/d/msg/jedis_redis/5h8mMyq2CUI/ee6LgYcvvTsJ.
(And #579, too)

I've posted about discussion of implementing missing (and undocumented) Redis Cluster commands.
I waited for users / developers opinion, but only @xetorthio replied it's better to implement all Redis commands.
And I've posted to Redis Google Group about stability of undocumented cluster commands, but @antirez didn't answer.

I agree @xetorthio's opinion and respect rule of thumb, so I've implemented all Redis Cluster undocumented commands currently not implemented.

All commands have tests except two things, CLUSTER SAVECONFIG and CLUSTER FAILOVER.
CLUSTER SAVECONFIG just write config to config file, so I cannot make unit test.
I've made unit test for CLUSTER FAILOVER, but it's not working because of bug in CLUSTER FAILOVER. I've checked @Ignore to test.

Commands List
====

* CLUSTER FORGET
* CLUSTER FLUSHSLOTS
* CLUSTER KEYSLOT
* CLUSTER COUNTKEYSINSLOT
* CLUSTER SETSLOT STABLE
* CLUSTER SAVECONFIG
* CLUSTER REPLICATE
* CLUSTER SLAVES
* CLUSTER FAILOVER
* Be careful! It seems to bug in manual failover - Redis unstable branch https://github.com/antirez/redis/commit/0f2597092fdcd17547282bd434e46d3dc8412e23
* I'll post to Redis github issue