Skogsrå v1.2.0 Skogsra.Cache View Source
This module defines the helpers for the variable cache.
Link to this section Summary
Functions
Gets a variable value env
from the cache
Creates a new cache
Stores a variable env
in the cache
Link to this section Functions
Link to this function
get_env(env)
View Source
get_env(env)
View Source
get_env(Skogsra.Env.t()) :: {:ok, term()} | :error
get_env(Skogsra.Env.t()) :: {:ok, term()} | :error
Gets a variable value env
from the cache.
Link to this function
new()
View Source
new()
View Source
new() :: :ets.tab()
new() :: :ets.tab()
Creates a new cache.
Link to this function
put_env(env, value)
View Source
put_env(env, value)
View Source
put_env(Skogsra.Env.t(), term()) :: :ok
put_env(Skogsra.Env.t(), term()) :: :ok
Stores a variable env
in the cache.