HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulehedis-0.16.4Haskell2010

Database.Redis.Cluster.HashSlot

  • 1 type
  • 1 value
  • Packagehedis-0.16.4
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHashSlot.hs
newtypenewtype HashSlot
#
Instances7Enum, Eq, Integral, Num, Ord, Real, …
  • Enum HashSlotDefined in hedis-0.16.4 · Database.Redis.Cluster.HashSlot
  • Eq HashSlotDefined in hedis-0.16.4 · Database.Redis.Cluster.HashSlot
  • Integral HashSlotDefined in hedis-0.16.4 · Database.Redis.Cluster.HashSlot
  • Num HashSlotDefined in hedis-0.16.4 · Database.Redis.Cluster.HashSlot
  • Ord HashSlotDefined in hedis-0.16.4 · Database.Redis.Cluster.HashSlot
  • Real HashSlotDefined in hedis-0.16.4 · Database.Redis.Cluster.HashSlot
  • Show HashSlotDefined in hedis-0.16.4 · Database.Redis.Cluster.HashSlot

Compute the hashslot associated with a key

Example6 expressions
keyToSlot "123"HashSlot 5970keyToSlot "{123"HashSlot 2872keyToSlot "{123}"HashSlot 5970keyToSlot "{}123"HashSlot 7640keyToSlot "{123}1{abc}"HashSlot 5970keyToSlot "\00\01"HashSlot 4129