Pow v0.1.0-alpha.1 Pow.Store.Backend.MnesiaCache View Source
GenServer based key value Mnesia cache store with auto expiration.
When the MnesiaCache starts, it’ll initialize invalidators for all stored
keys using the expire
value. If the expire
datetime is past, it’ll
send call the invalidator immediately.
Initialization options
:nodes
list of nodes to use, defaults to [node()]
Configuration options
:ttl
integer value for ttl of records:namespace
string value to use for namespacing keys
Link to this section Summary
Functions
Callback implementation for Pow.Store.Base.delete/2
Callback implementation for Pow.Store.Base.get/2
Callback implementation for Pow.Store.Base.put/3
Link to this section Functions
Callback implementation for Pow.Store.Base.delete/2
.
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
handle_cast(arg, state)
View Source
handle_cast({:cache, Pow.Config.t(), binary(), any()}, map()) :: {:noreply, map()}
handle_cast({:delete, Pow.Config.t(), binary()}, map()) :: {:noreply, map()}
Link to this function
handle_info(arg, state)
View Source
handle_info({:invalidate, Pow.Config.t(), binary()}, map()) :: {:noreply, map()}
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
start_link(config)
View Source
start_link(Pow.Config.t()) :: GenServer.on_start()