keyToSlot function contained several bugs, so it didn't work according to the spec and the values didn't match result of the CLUSTER KEYSLOT command.
In this commit we fix those bugs:
Now tags are properly matched;
Non matching tags return key calculated on entire string;
First matching tag is used.
All the cases were tested with CLUSTER KEYSLOT command and added to the doctests. Unfortunatly it's not added to the full featured testsuite because running CLUSTR KEYSLOT command requirs running redis cluster
keyToSlot function contained several bugs, so it didn't work according to the spec and the values didn't match result of the CLUSTER KEYSLOT command.
In this commit we fix those bugs:
All the cases were tested with CLUSTER KEYSLOT command and added to the doctests. Unfortunatly it's not added to the full featured testsuite because running CLUSTR KEYSLOT command requirs running redis cluster
Fixes #203.