View Source PrimaAuth0Ex.JwksStrategy.EtsCache (prima_auth0_ex v0.9.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

Puts fetched signers

Sets the cache status

Functions

check_state()

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

get_signers()

Loads fetched signers

new()

Starts ETS cache

put_signers(signers)

Puts fetched signers

set_status(atom)

Sets the cache status