Pow v0.1.0-alpha.1 Pow.Store.CredentialsCache View Source
Default module for credentials session storage.
A key (session id), is used to store, fetch or delete credentials. When credentials are stored or deleted, a credentials key will be generated. The value of that key will be all current keys (session ids), and the most recent credentials.
When a key is updated, all expired keys will be pruned from the credentials key.
Link to this section Summary
Functions
Callback implementation for Pow.Store.Base.delete/2
Delete session for user
Callback implementation for Pow.Store.Base.get/2
Fetch user from session
List sessions for user
Callback implementation for Pow.Store.Base.put/3
Put new session for user
Link to this section Functions
Callback implementation for Pow.Store.Base.delete/2
.
delete(Pow.Config.t(), Pow.Config.t(), binary()) :: :ok
Delete session for user
get(Pow.Config.t(), binary()) :: any() | :not_found
Callback implementation for Pow.Store.Base.get/2
.
get(Pow.Config.t(), Pow.Config.t(), binary()) :: any() | :not_found
Fetch user from session
list(Pow.Config.t(), Pow.Config.t(), map()) :: [binary()]
List sessions for user
put(Pow.Config.t(), binary(), any()) :: :ok
Callback implementation for Pow.Store.Base.put/3
.
put(Pow.Config.t(), Pow.Config.t(), binary(), any()) :: :ok
Put new session for user