APIacAuthBearer.Cache behaviour (apiac_auth_bearer v2.0.0) View Source
APIacAuthBearer.Cache
behaviour specification
Link to this section Summary
Callbacks
Returns the bearer's attributes stored in the cache
Initializes the cache options
Stores the bearer's attributes in the cache
Link to this section Types
Specs
opts() :: Keyword.t()
Link to this section Callbacks
Specs
get(APIacAuthBearer.bearer(), opts()) :: APIacAuthBearer.Validator.response_attributes() | nil
Returns the bearer's attributes stored in the cache
Returns nil
if the bearer was not found in the cache
Specs
Initializes the cache options
This function is called at compile-time when APIacAuthBearer
is called in
a plug pipeline. Its result will be given to put/3
and get/2
Specs
put( APIacAuthBearer.bearer(), APIacAuthBearer.Validator.response_attributes(), opts() ) :: no_return()
Stores the bearer's attributes in the cache