File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
packages/web/docs/src/content/gateway/other-features/performance Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,32 @@ export const gatewayConfig = defineConfig({
104
104
})
105
105
```
106
106
107
+ #### Redis Cluster
108
+
109
+ If you are using [ Redis Cluster] ( http://redis.io/topics/cluster-tutorial ) , You can use the
110
+ ` startupNodes ` option to connect to the Redis Cluster.
111
+
112
+ ``` ts filename="gateway.config.ts"
113
+ import { defineConfig } from ' @graphql-hive/gateway'
114
+
115
+ export const gatewayConfig = defineConfig ({
116
+ cache: {
117
+ type: ' redis' ,
118
+ startupNodes: [
119
+ { host: ' localhost' , port: 7000 },
120
+ { host: ' localhost' , port: 7001 },
121
+ { host: ' localhost' , port: 7002 }
122
+ ],
123
+ // If you are using AWS ElastiCache with TLS, you need to use the following options
124
+ tls: true ,
125
+ dnsLookupAsIs: true
126
+ },
127
+ responseCaching: {
128
+ session : () => null
129
+ }
130
+ })
131
+ ```
132
+
107
133
### Cloudflare Workers KV
108
134
109
135
Cloudflare Workers KV is a distributed, eventually consistent key-value store available in the
You can’t perform that action at this time.
0 commit comments