Plexus.Cache (Plexus v0.1.0)

Copy Markdown View Source

Bounded per-run ETS response cache keyed by Plexus.Contract.memo_key/2.

Summary

Functions

delete(run_id, key)

@spec delete(term(), term()) :: :ok

get(run_id, key)

@spec get(term(), term()) :: {:ok, term()} | :miss

put(run_id, key, value, opts \\ [])

@spec put(term(), term(), term(), keyword()) :: :ok