mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Sometimes it's useful to compute a key's cluster slot in a module. This API function is just like the command CLUSTER KEYSLOT (but faster). A "reverse" API is also added: `RedisModule_ClusterCanonicalKeyNameInSlot`. Given a slot, it returns a short string that we can call a canonical key for the slot.
16 KiB
16 KiB