{"library":"mercurius-cache","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"8.0.0","tags":["javascript","mercurius","graphql","cache","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install mercurius-cache","imports":["import cache from 'mercurius-cache'"]},{"cmd":"yarn add mercurius-cache","imports":[]},{"cmd":"pnpm add mercurius-cache","imports":[]}],"homepage":"https://github.com/mercurius-js/cache#readme","github":"https://github.com/mercurius-js/cache","docs":null,"changelog":null,"pypi":null,"npm":"mercurius-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}