ElGraph.Store.ETS (ElGraph v0.3.0)

Copy Markdown View Source

ETS 기반 기본 장기 기억 Store (SPEC §6).

체크포인터 ETS와 같은 패턴 — 인스턴스별 테이블(named 싱글턴 아님)이라 async: true 테스트와 호환된다. DB 어댑터(Postgres 등)는 별도 패키지.

children = [{ElGraph.Store.ETS, name: MyApp.Store}]
config = ElGraph.Store.ETS.config(MyApp.Store)
ElGraph.Store.ETS.put(config, ["users", "u1"], "theme", "dark")

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

config(server)

@spec config(GenServer.server()) :: map()

start_link(opts \\ [])