From 73abccf82c370543dfe5311039eb7193ef15bffa Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Wed, 12 Feb 2025 22:44:20 +0300 Subject: [PATCH] docs(gateway): new Upstash Redis storage (#6499) --- .../other-features/performance/index.mdx | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/packages/web/docs/src/content/gateway/other-features/performance/index.mdx b/packages/web/docs/src/content/gateway/other-features/performance/index.mdx index 2118f5750..61bada630 100644 --- a/packages/web/docs/src/content/gateway/other-features/performance/index.mdx +++ b/packages/web/docs/src/content/gateway/other-features/performance/index.mdx @@ -80,6 +80,30 @@ export const gatewayConfig = defineConfig({ }) ``` +#### Redis Sentinel + +If you are using +[Redis Sentinel](https://redis.io/docs/latest/operate/oss_and_stack/management/sentinel/), You can +use the `sentinels` option to connect to the Redis Sentinel. + +```ts filename="gateway.config.ts" +import { defineConfig } from '@graphql-hive/gateway' + +export const gatewayConfig = defineConfig({ + cache: { + type: 'redis', + sentinels: [ + { host: 'localhost', port: 26379 }, + { host: 'localhost', port: 26380 }, + { host: 'localhost', port: 26381 } + ] + }, + responseCaching: { + session: () => null + } +}) +``` + ### Cloudflare Workers KV Cloudflare Workers KV is a distributed, eventually consistent key-value store available in the