Pow v1.0.14 Pow.Store.Backend.Base behaviour View Source

Used to set up API for key-value cache store.

Usage

defmodule MyApp.RedisCache do
  @behaviour Base

  # ...
end

Link to this section Summary

Link to this section Types

Link to this type

key_match()

View Source
key_match() :: [atom() | binary()]
Link to this type

record()

View Source
record() :: {key(), any()}

Link to this section Callbacks

Link to this callback

delete(arg1, key)

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

get(arg1, key)

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

put(arg1, arg2)

View Source
put(Pow.Config.t(), record() | [record()]) :: :ok