tai v0.0.28 Tai.Advisors.Store.Backends.ETS

Link to this section Summary

Functions

Return a list of all instances currently stored in the ETS table

Create the ETS table that will store advisor instances

Upsert an instance into the ETS table

Link to this section Types

Link to this type

instance()

instance() :: Tai.Advisors.Instance.t()
Link to this type

table_name()

table_name() :: atom()

Link to this section Functions

Link to this function

all(table_name)

all(table_name()) :: [instance()]

Return a list of all instances currently stored in the ETS table

Link to this function

create(table_name)

create(table_name()) :: :ok

Create the ETS table that will store advisor instances

Link to this function

upsert(instance, table_name)

upsert(instance(), table_name()) :: {:ok, instance()}

Upsert an instance into the ETS table