Nebulex.Adapters.Redis.Cluster.Keyslot (Nebulex.Adapters.Redis v3.0.0)

Copy Markdown View Source

Default keyslot implementation for Redis Cluster hash slot calculation.

Summary

Types

t()

Keyslot function type

Functions

Helper function to compute the key; regardless the key contains hashtags or not.

Types

t()

@type t() :: (binary(), any() -> non_neg_integer())

Keyslot function type

Functions

compute_key(key)

@spec compute_key(binary()) :: binary()

Helper function to compute the key; regardless the key contains hashtags or not.