Nosedrum.TextCommand.Storage.ETS (nosedrum v0.6.0-alpha1) View Source

An implementation of the Nosedrum.TextCommand.Storage behaviour based on ETS tables.

This module needs to be configured as part of your supervision tree as it spins up a GenServer which owns the command table. If you want to obtain the table ID of the internal ETS table, send a call with the message :tid.

Link to this section Summary

Link to this section Functions

Link to this function

start_link(table_name \\ :nosedrum_commands, table_options \\ [{:read_concurrency, true}, :ordered_set, :public, :named_table], gen_options)

View Source

Initialize the ETS command storage.

By default, the table used for storing commands is a named table with the name nosedrum_commands. The table reference is stored internally as the state of this process, the public-facing API functions default to using the table name to access the module.