Question about slot hashing algorithm #1069
Closed
timcoleman
started this conversation in
General
Replies: 1 comment
-
My mistake. I didn't know that this is a hashtag in redis. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm trying to implement a client to work with the Garnet server, and I've got an issue with the slot hashing algorithm (Garnet.common.HashSlotUtils.HashSlot()). The one used in Garnet is based on CRC16, similar to Redis, but there is a special twist.
If the key contains a string inside of braces "{...}", then only that bit is hashed. I guess that might be because the key could be a GUID. In my case, I've got keys that contain braces that do not have GUIDs in them, and I expected the braces to be treated as normal characters.
This seems to be intentional, but is it correct? For now, I'm just replacing my braces with underscores to make it work, but I would rather not do that.
Beta Was this translation helpful? Give feedback.
All reactions