Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Support for SENTINEL commands #370
I have added SENTINEL related methods to Jedis class down to Protocol via Client and BinaryClient classes.
Probably instead of having so many new methods one could have SentinelParams class (just like SortingParams for sort).
At the same time was not sure about checkIsInMulti() - should it be in every call now? Most does not apply to SENTINEL methods as MULTI is not allowed.
Test based on config files taken from noise/redis-sentinel-tests.
Time to build hamsterready/jedis-sentinel-pool - still might need to refactor JedisPool as it is not extendable (non empty constructors are evil ;-)).
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Grab configs from https://github.com/noise/redis-sentinel-tests and fire up master, slave and sentinels as described on that page:
Open a bunch of shells and fire up redis instances: