Jido.Agent.Store.ETS (Jido v2.0.0-rc.1)

View Source

ETS-based agent store adapter.

Fast in-memory storage for agent hibernate/thaw. Not restart-safe - all data is lost when the BEAM stops.

Usage

Jido.Agent.InstanceManager.child_spec(
  name: :sessions,
  agent: MyAgent,
  persistence: [
    store: {Jido.Agent.Store.ETS, table: :my_agent_cache}
  ]
)

Options

  • :table - ETS table name (required). Table is created if it doesn't exist.