dart_redis_cluster_key_slot library

Functions

generate(String key) int
Convert a String into a Redis slot hash.
generateMulti(List<String> keys) int
Convert an array of multiple strings into a Redis slot hash. Returns -1 if one of the keys is not for the same slot as the others.