engine v0.1.2 Engine.Settings

It gives the configuration value based on key, but if the configuration was not specified in the config.exs file, the default configuration will be used

Summary

Functions

We get the default value from the map. ## Examples iex> Engine.Settings.get(:redis_port) 6555

It return the value for the input key, if not found, it will use the fallback as a value instead ## Examples iex> Engine.Config.get(:fall_back_this, :this_config_doesnot_exist) :fall_back_this

Functions

get(key)

We get the default value from the map. ## Examples iex> Engine.Settings.get(:redis_port) 6555

get(fallback, key)

It return the value for the input key, if not found, it will use the fallback as a value instead ## Examples iex> Engine.Config.get(:fall_back_this, :this_config_doesnot_exist) :fall_back_this