Geolix v0.15.1 Geolix.Adapter.MMDB2.Storage.Data View Source

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

Link to this section Summary

Functions

Fetches the data for a database

Stores the data for a specific database

Starts the data agent

Link to this section Functions

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

Fetches the data for a database.

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

Stores the data for a specific database.

Starts the data agent.