exhtml v0.3.1 Exhtml.Table
Exhtml.Table provides a place to set and get HTML contents by slug.
Examples:
iex> {:ok, pid} = Exhtml.Table.start_link []
...> Exhtml.Table.set(pid, :foo, :bar)
:ok
...> Exhtml.Table.get(pid, :foo)
:bar
Summary
Functions
Gets content of the slug from the store
Removes content of the slug from the store
Sets content of the slug into the store
Starts a Exhtml.Table process
Types
Functions
Gets content of the slug from the store.
server- PID or name of the serverslug- key of the content
Removes content of the slug from the store.
server- PID or name of the serverslug- key of the content
Sets content of the slug into the store.
server- PID or name of the serverslug- key of the contentcontent- the content for the slug
Examples:
iex> {:ok, pid} = Exhtml.Table.start_link []
...> Exhtml.Table.set(pid, :foo, :bar)
:ok
iex> Exhtml.Table.get(pid, :foo)
:bar
Starts a Exhtml.Table process.
opts- options for starting the process:data_dirindicates which path the data will be persited in.data_nodesindicates which nodes will hold persisted data. Other nodes will only hold data in memories.
Returns {:ok, pid} if succeed, {:error, reason} otherwise.