Mercurius Cache

JSON →
library 8.0.0 ·javascript
verified Jun 7, 2026

Adds an in-process or Redis-based caching layer to Mercurius GraphQL server, with deduplication via async-cache-dedupe. Current stable version is 8.0.0, released in 2025. Supports fine-grained per-resolver TTL, stale-while-revalidate, and invalidation. Fully compatible with federation. Unlike generic caching solutions, it integrates directly with Mercurius lifecycle and provides policy-based caching for individual queries or all resolvers. Recommended for production GraphQL APIs needing to reduce load on resolvers with acceptable data staleness.