apiac_auth_bearer v1.1.0 APIacAuthBearer.Cache behaviour 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
Link to this section Callbacks
Link to this callback
get(arg1, opts)
View Sourceget(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
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
Link to this callback
put(arg1, arg2, opts)
View Sourceput( APIacAuthBearer.bearer(), APIacAuthBearer.Validator.response_attributes(), opts() ) :: no_return()
Stores the bearer's attributes in the cache