Geolix v0.15.0 Geolix.Adapter.MMDB2.Storage.Tree View Source

Geolix MMDB2 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

Link to this section Summary

Functions

Fetches the tree for a database

Stores the tree for a specific database

Starts the tree agent

Link to this section Functions

Link to this function get(database) View Source
get(atom()) :: binary() | nil

Fetches the tree for a database.

Link to this function set(database, tree) View Source
set(atom(), binary()) :: :ok

Stores the tree for a specific database.

Starts the tree agent.