EndPointBlank. AuthCache
(end_point_blank_elixir v0.3.1)
Copy Markdown
ETS-backed authorization result cache with TTL expiry and a size cap.
Concurrent reads go directly to ETS (no GenServer round-trip). Mutations are serialized through the GenServer to make eviction safe.
Cache key: "epb_auth:{client_auth}:{path}:{method}:{app_name}"
Value stored: the source_application_environment_id from the 201 response.
Summary
Functions
Returns a specification to start this module under a supervisor.
Looks up key in the cache.
Stores a successful auth result (source_env_id may be nil) under key.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Looks up key in the cache.
Returns {:hit, source_env_id} if the entry exists and has not expired,
or :miss otherwise.
Stores a successful auth result (source_env_id may be nil) under key.