expected v0.1.1 Expected.MemoryStore View Source

Stores login data in-memory.

This store is mainly written for test purposes. It does not persist data on disk nor share it between nodes.

To use this store, you must precise the process name in the application configuration:

config :expected,
  store: :memory,
  process_name: :test_store,
  ...

You also must start the server:

Expected.MemoryStore.start_link()

It is possible to initialise it with a defined state to help testing:

Expected.MemoryStore.start_link(%{})

Link to this section Summary

Functions

Starts the store server

Link to this section Functions

Link to this function start_link(default \\ %{}) View Source
start_link(term()) :: GenServer.on_start()

Starts the store server.