Pow v1.0.0-rc.0 Pow.Store.Base behaviour View Source

Used to set up API for key-value cache store.

Usage

defmodule MyApp.CredentialsStore do
  use Pow.Store.Base,
    ttl: :timer.minutes(30),
    namespace: "credentials"
end

Link to this section Summary

Link to this section Callbacks

Link to this callback delete(arg0, binary) View Source
delete(Pow.Config.t(), binary()) :: :ok
Link to this callback get(arg0, binary) View Source
get(Pow.Config.t(), binary()) :: any() | :not_found
Link to this callback put(arg0, binary, any) View Source
put(Pow.Config.t(), binary(), any()) :: :ok