Solid.Caching behaviour (solid v1.0.0-rc.0)

View Source

Summary

Callbacks

get(key)

@callback get(key :: term()) :: {:ok, Solid.Template.t()} | {:error, :not_found}

put(key, t)

@callback put(key :: term(), Solid.Template.t()) :: :ok | {:error, term()}