Raxol.Core.Stores.Naming (Raxol Core v2.6.0)

Copy Markdown View Source

Derive a store's identity from its registered process name.

ETS-backed stores name their tables after the GenServer's registered name so that multiple instances can coexist on one node. This helper reads that name and fails loudly when the store was started without one, since an unnamed store cannot derive stable table names.

Summary

Functions

Return the registered name of the calling process.

Functions

registered_name!(module)

@spec registered_name!(module()) :: atom()

Return the registered name of the calling process.

Raises when the process was not started with a registered atom name. module only shapes the error message so it points at the store the caller intended to start.