WardrikStore. ETS
(wardrik_store v0.1.0-rc.1)
Copy Markdown
Keeps keys in memory. They're gone when the store's process stops.
store = WardrikStore.ETS.new(name: MyApp.Store)
children = [{WardrikStore, store}]Use it for tests, development and data your app can rebuild.
Summary
Functions
Returns a specification to start this module under a supervisor.
Builds a store. Starts nothing.
Starts the store with an empty table, both named name.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec new(keyword()) :: WardrikStore.t()
Builds a store. Starts nothing.
Options
:name- required. The name of the store's process and table.
@spec start_link(atom()) :: GenServer.on_start()
Starts the store with an empty table, both named name.