Ramal.Storage.ETS (Ramal v0.2.0)

Copy Markdown View Source

Keeps branches in an ETS table owned by Ramal.Supervisor. The default backend in tests and development.

Everything is lost when the supervisor stops. Reads and writes go straight to the table from the calling process, so the backend adds no bottleneck.

Example

iex> Ramal.Storage.ETS.table()
Ramal.Storage.ETS

Summary

Functions

The name of the table. Ramal.Supervisor creates it.

Functions

table()

@spec table() :: atom()

The name of the table. Ramal.Supervisor creates it.

Example

iex> Ramal.Storage.ETS.table()
Ramal.Storage.ETS