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

Returns the bearer's attributes stored in the cache

Returns nil if the bearer was not found in the cache

Link to this callback

init_opts(opts)

View Source
init_opts(opts()) :: opts()

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

Stores the bearer's attributes in the cache