FastestMCP.SessionStateStore.Memory (fastest_mcp v0.1.2)

Copy Markdown View Source

In-memory session-state backend.

This backend stores session values in one GenServer-local map per running server. It accepts ordinary Elixir terms and keeps the implementation simple for the default runtime. Applications that need persistence or stronger serialization rules can swap in a different backend through the :session_state_store runtime option.

Summary

Functions

Returns a specification to start this module under a supervisor.

Deletes one session value from the backing store.

Deletes all state associated with the given session.

Reads one session value from the backing store.

Stores one session value in the backing store.

Starts the process owned by this module.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

delete(store, session_id, key)

Deletes one session value from the backing store.

delete_session(store, session_id)

Deletes all state associated with the given session.

get(store, session_id, key)

Reads one session value from the backing store.

put(store, session_id, key, value)

Stores one session value in the backing store.

start_link(opts \\ [])

Starts the process owned by this module.