Skogsrå v2.3.0 Skogsra.Cache View Source

This module defines the helpers for the variable cache. The cache works with persistent terms.

Link to this section Summary

Functions

Gets a variable value env from the cache.

Stores a variable env in a persistent term.

Link to this section Functions

Link to this function

get_env(env)

View Source
get_env(Skogsra.Env.t()) :: {:ok, term()} | :error

Gets a variable value env from the cache.

Link to this function

put_env(env, value)

View Source
put_env(Skogsra.Env.t(), term()) :: :ok

Stores a variable env in a persistent term.