Pow v1.0.16 Pow.Store.Base behaviour View Source
Used to set up API for key-value stores.
Usage
defmodule MyApp.CredentialsStore do
use Pow.Store.Base,
ttl: :timer.minutes(30),
namespace: "credentials"
@impl true
def put(config, backend_config, key, value) do
Pow.Store.Base.put(config, backend_config, {key, value})
end
end
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
put(config, backend_config, record_or_records)
View Sourceput(Pow.Config.t(), Pow.Config.t(), record() | [record()]) :: :ok
Link to this section Callbacks
Link to this callback
all(arg1, key_match)
View Sourceall(Pow.Config.t(), key_match()) :: [record()]