Pow.Store.Base behaviour (Pow v1.0.25) View Source
Used to set up API for key-value stores.
Usage
defmodule MyApp.CustomCache do
use Pow.Store.Base,
ttl: :timer.minutes(30),
namespace: "credentials"
@impl true
def put(config, key, value) do
Pow.Store.Base.put(config, backend_config(config), {key, value})
end
end
Link to this section Summary
Link to this section Types
Specs
config() :: Pow.Config.t()
Specs
key() :: Pow.Store.Backend.Base.key()
Specs
key_match() :: Pow.Store.Backend.Base.key_match()
Specs
record() :: Pow.Store.Backend.Base.record()