Geolix.Storage.Data

Geolix data storage.

Usage

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

Summary

get(database)

Fetches the data for a database

set(database, data)

Stores the data for a specific database

start_link()

Starts the data agent

Functions

get(database)

Specs:

  • get(atom) :: binary | nil

Fetches the data for a database.

Source
set(database, data)

Specs:

  • set(atom, binary) :: :ok

Stores the data for a specific database.

Source
start_link()

Specs:

Starts the data agent.

Source