Pow v1.0.8 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(arg0, binary)
View Source
delete(Pow.Config.t(), binary()) :: :ok
delete(Pow.Config.t(), binary()) :: :ok
Link to this callback
get(arg0, binary)
View Source
get(arg0, binary)
View Source
get(Pow.Config.t(), binary()) :: any() | :not_found
get(Pow.Config.t(), binary()) :: any() | :not_found
Link to this callback
keys(arg0)
View Source
keys(arg0)
View Source
keys(Pow.Config.t()) :: [any()]
keys(Pow.Config.t()) :: [any()]
Link to this callback
put(arg0, binary, any)
View Source
put(arg0, binary, any)
View Source
put(Pow.Config.t(), binary(), any()) :: :ok
put(Pow.Config.t(), binary(), any()) :: :ok