Vasuki.Data.Mucket (Vasuki v0.1.1) View Source

Mucket is a memory bucket for varied GenServers to get/update their state at.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Gets the data mapped to bucket name in state map.

Callback implementation for GenServer.init/1.

Resets the memory map of buckets to empty.

Starts GenServer for Mucket.

Maps the data to bucket name in state.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Gets the data mapped to bucket name in state map.

Callback implementation for GenServer.init/1.

Resets the memory map of buckets to empty.

Starts GenServer for Mucket.

Link to this function

update(bucket, new_state)

View Source

Maps the data to bucket name in state.