Ltix.JWT.KeySet.CachexCache (Ltix v0.1.0)

Copy Markdown View Source

Cachex-backed cache for JWKS key sets.

Requires a Cachex cache to be started in your supervision tree:

# In your application.ex
children = [
  {Cachex, name: :ltix_jwks}
]

The cache name defaults to :ltix_jwks and can be configured:

config :ltix, :cachex_cache_name, :my_jwks_cache

Then set this module as the JWKS cache:

config :ltix, :jwks_cache, Ltix.JWT.KeySet.CachexCache