Current section

Files

Jump to
kvasir_agent lib agent cache cache.ex
Raw

lib/agent/cache/cache.ex

defmodule Kvasir.Agent.Cache do
@callback load(agent :: module, id :: term) :: {:ok, Kvasir.Offset.t(), map} | {:error, atom}
@callback save(agent :: module, id :: term, data :: map, offset :: Kvasir.Offset.t()) ::
:ok | {:error, atom}
end