Nebulex.Adapters.Redis.Cluster.Keyslot (Nebulex.Adapters.Redis v3.0.0-rc.1)

View Source

Default Nebulex.Adapter.Keyslot implementation.

Summary

Types

t()

Keyslot funtion 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 funtion type

Functions

compute_key(key)

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

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