Geolix v0.10.1 Geolix.Storage.Tree

Geolix tree storage.

Usage

iex> set(:some_database_name, << 1, 2, 3 >>)
:ok
iex> get(:some_database_name)
<< 1, 2, 3 >>
iex> get(:unregistered_database)
nil

Summary

Functions

Fetches the tree for a database

Stores the tree for a specific database

Starts the tree agent

Functions

get(database)

Specs

get(atom) :: binary | nil

Fetches the tree for a database.

set(database, tree)

Specs

set(atom, binary) :: :ok

Stores the tree for a specific database.

start_link()

Specs

start_link :: Agent.on_start

Starts the tree agent.