docs(gateway): new Upstash Redis storage (#6499)

This commit is contained in:
Arda TANRIKULU 2025-02-12 22:44:20 +03:00 committed by GitHub
parent c4fa4a187d
commit 73abccf82c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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