Skip to content

Commit

Permalink
Add a keyless flag to designate commands that don't take keys
Browse files Browse the repository at this point in the history
... rather than checking interval===0 which isn't true for commands with
movable keys (e.g. zunionstore).

For keyless commands we just address a random node, which was always the
intention, but this actually makes that work. Fixes #25

For those movable-keys commands we just go by the first key given. And
if redis complains then it'll fail with a redis error. Fixes #26.

This also addresses #21 inasmuch as the command shouldn't error any more.
However, MONITOR should perhaps get special treatment rather than just
addressing a random node
  • Loading branch information
jbt committed Mar 21, 2018
1 parent 5cea8b9 commit c3d0916
Show file tree
Hide file tree
Showing 3 changed files with 495 additions and 326 deletions.
Loading

0 comments on commit c3d0916

Please sign in to comment.