Jido.Thread.Store.Adapters.InMemory (Jido v2.3.0)

Copy Markdown View Source

Pure in-memory adapter storing threads in a map.

No external processes - state is carried in adapter_state. Thread is auto-created on append if it doesn't exist.

Summary

Functions

Delete a thread

List all thread IDs

Functions

delete(state, thread_id)

@spec delete(%{threads: map()}, String.t()) :: {:ok, %{threads: map()}}

Delete a thread

list(state)

@spec list(%{threads: map()}) :: {:ok, %{threads: map()}, [String.t()]}

List all thread IDs