View Source Mimi.Store (Mimi v0.1.0)

An Agent backend for memoization.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Get a value associated with the given key or add and return the result of fun.() if the key isn't present.

Start the Agent process and initialize with an empty map.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_or_put(pid, key, fun)

View Source

Get a value associated with the given key or add and return the result of fun.() if the key isn't present.

Start the Agent process and initialize with an empty map.