DATE:
AUTHOR:
Ory Team
Ory Hydra New Feature

Ory Hydra JWK In-Memory Cache

DATE:
AUTHOR: Ory Team

Ory Hydra Enterprise License adds support for in-memory caching of JSON Web Keys (JWKs) to reduce database queries and improve response latency. The cache is controlled by the db.jwk_cache.enabled configuration option.

Developers can configure cache behavior using:

  • db.jwk_cache.size: maximum number of cached keys.

  • db.jwk_cache.ttl: cache time-to-live, defining how long keys remain valid before refresh.

Ory recommends setting a TTL to ensure regular key refreshes. Key updates are not actively propagated to the cache; relying services should tolerate cached (stale) keys for a defined period. See Hydra Configuration Reference.

This update is available now on Ory Hydra Enterprise and will be included in the next Ory Hydra release.

Powered by LaunchNotes