View Source LibRedis.SlotStore.Default (lib_redis v0.1.0)

Default SlotStore implementation using Agent

Link to this section Summary

Functions

get slots layer

new storage the only argument is :name, which is the name of the storage

srore slots layer

Link to this section Types

@type t() :: %LibRedis.SlotStore.Default{name: GenServer.name()}

Link to this section Functions

get slots layer

examples

Examples

iex> s = LibRedis.SlotStore.Default.new()
iex> LibRedis.SlotStore.Default.get(s)

new storage the only argument is :name, which is the name of the storage

examples

Examples

iex> LibRedis.SlotStore.Default.new(name: :slot_agent)

srore slots layer

examples

Examples

iex> s = LibRedis.SlotStore.Default.new()
iex> LibRedis.SlotStore.Default.put(s, [%{start_slot: 0, end_slot: 1}])
:ok