neuron v0.9.0 Neuron.Store View Source
This module provides a simple way to interface with the process and application environmental variables, acting as a simple KV store.
WARNING: this module is not intended to be used outside of this library.
Link to this section Summary
Functions
gets the context of a given neuron application/process environmental variable
deletes neuron application/process environmental variables
returs neuron application/process environmental variables
sets neuron application/process environmental variables
Link to this section Functions
current_context(key :: atom()) :: :global | :process
gets the context of a given neuron application/process environmental variable
Examples
iex> Neuron.Store.current_context(:my_key) :global
deletes neuron application/process environmental variables
Examples
iex> Neuron.Store.delete(:my_key) :ok
delete(context :: :global | :process, key :: atom()) :: :ok
returs neuron application/process environmental variables
Examples
iex> Neuron.Store.set(:my_key, “value”) :ok iex> Neuron.Store.get(:my_key) “value”
sets neuron application/process environmental variables
Examples
iex> Neuron.Store.set(:my_key, “value”) :ok