View Source Charon.SessionStore.RedisStore.Config (Charon v3.2.0)

Config module for Charon.SessionStore.RedisStore.

Summary

Functions

Build config struct from enumerable (useful for passing in application environment). Raises for missing mandatory keys and sets defaults for optional keys.

Get the config for this module from the parent Charon.Config struct.

Types

t()

@type t() :: %Charon.SessionStore.RedisStore.Config{
  get_signing_key: (Charon.Config.t() -> binary()),
  key_prefix: String.t()
}

Functions

from_enum(enum)

@spec from_enum(Enum.t()) :: t()

Build config struct from enumerable (useful for passing in application environment). Raises for missing mandatory keys and sets defaults for optional keys.

get_mod_config(charon_config)

@spec get_mod_config(Charon.Config.t()) :: t()

Get the config for this module from the parent Charon.Config struct.