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

Link to this section Functions

Link to this function delete(config, key) View Source
delete(Pow.Config.t(), binary()) :: :ok

Callback implementation for Pow.Store.Base.delete/2.

Link to this function delete(config, backend_config, session_id) View Source
delete(Pow.Config.t(), Pow.Config.t(), binary()) :: :ok

Delete session for user

Link to this function get(config, key) View Source
get(Pow.Config.t(), binary()) :: any() | :not_found

Callback implementation for Pow.Store.Base.get/2.

Link to this function get(config, backend_config, session_id) View Source
get(Pow.Config.t(), Pow.Config.t(), binary()) :: any() | :not_found

Fetch user from session

Link to this function list(config, backend_config, user) View Source
list(Pow.Config.t(), Pow.Config.t(), map()) :: [binary()]

List sessions for user

Link to this function put(config, key, value) View Source
put(Pow.Config.t(), binary(), any()) :: :ok

Callback implementation for Pow.Store.Base.put/3.

Link to this function put(config, backend_config, session_id, user) View Source
put(Pow.Config.t(), Pow.Config.t(), binary(), any()) :: :ok

Put new session for user