View Source JokenJwks.DefaultStrategyTemplate.EtsCache (Joken JWKS v1.7.0-rc.0)

Simple ETS counter based state machine

Summary

Functions

Returns 0 - no need to fetch signers or 1 - need to fetch

Loads fetched signers

Starts ETS cache - will only create if table doesn't exist already

Puts fetched signers

Sets the cache status

Functions

Returns 0 - no need to fetch signers or 1 - need to fetch

Loads fetched signers

Starts ETS cache - will only create if table doesn't exist already

Link to this function

put_signers(module, signers)

View Source

Puts fetched signers

Link to this function

set_status(module, atom)

View Source

Sets the cache status