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

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

check_state(module)

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

get_signers(module)

Loads fetched signers

new(module)

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

put_signers(module, signers)

Puts fetched signers

set_status(module, atom)

Sets the cache status