Avrora.Storage.Memory.flush

You're seeing just the function flush, go back to Avrora.Storage.Memory module for more information.

Complete clean up of the storage. Useful for testing.

Examples

iex> _ = Avrora.Storage.Memory.start_link()
iex> schema = %Avrora.Schema{id: nil, json: "{}"}
iex> Avrora.Storage.Memory.put("my-key", schema)
{:ok, %Avrora.Schema{id: nil, json: "{}"}}
iex> {:ok, _} = Avrora.Storage.Memory.flush()
iex> Avrora.Storage.Memory.get("my-key")
{:ok, nil}