Geolix v0.11.0 Geolix.Adapter.MMDB2.Storage.Data

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

Summary

Functions

Fetches the data for a database

Stores the data for a specific database

Starts the data agent

Functions

get(database)
get(atom) :: binary | nil

Fetches the data for a database.

set(database, data)
set(atom, binary) :: :ok

Stores the data for a specific database.

start_link()
start_link() :: Agent.on_start

Starts the data agent.