| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.Redis.Cluster.HashSlot
Synopsis
- data HashSlot
- keyToSlot :: ByteString -> HashSlot
Documentation
Instances
| Enum HashSlot Source # | |
Defined in Database.Redis.Cluster.HashSlot | |
| Num HashSlot Source # | |
Defined in Database.Redis.Cluster.HashSlot | |
| Integral HashSlot Source # | |
Defined in Database.Redis.Cluster.HashSlot | |
| Real HashSlot Source # | |
Defined in Database.Redis.Cluster.HashSlot Methods toRational :: HashSlot -> Rational # | |
| Show HashSlot Source # | |
| Eq HashSlot Source # | |
| Ord HashSlot Source # | |
Defined in Database.Redis.Cluster.HashSlot | |
keyToSlot :: ByteString -> HashSlot Source #
Compute the hashslot associated with a key
>>>keyToSlot "123"HashSlot 5970>>>keyToSlot "{123"HashSlot 2872>>>keyToSlot "{123}"HashSlot 5970>>>keyToSlot "{}123"HashSlot 7640>>>keyToSlot "{123}1{abc}"HashSlot 5970>>>keyToSlot "\00\01"HashSlot 4129