dart_redis_cluster_key_slot 0.1.0
dart_redis_cluster_key_slot: ^0.1.0 copied to clipboard
A high performance Redis cluster key slot calculator.
Redis Key Slot Calculator #
A high performance Redis cluster key slot calculator.
This also handles key tags such as somekey{actualTag}
.
Usage #
import 'package:dart_redis_cluster_key_slot/dart_redis_cluster_key_slot.dart';
void main() {
// Get a slot number.
print(generate('foobar')); // 12325
// With tagging support (tags between '{}').
print(generate('abc{foobar}')); // 12325
}
Built and maintained by Invertase.