Skogsra.Cache (Skogsrå v2.5.2)

Copy Markdown View Source

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

Summary

Functions

Gets a variable value env from the cache.

Stores a variable env in a persistent term.

Functions

get_env(env)

@spec get_env(Skogsra.Env.t()) :: {:ok, term()} | :error

Gets a variable value env from the cache.

put_env(env, value)

@spec put_env(Skogsra.Env.t(), term()) :: :ok

Stores a variable env in a persistent term.