-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(redis): sentinel support (#8260)
* feat(redis): sentinel support * Fix tests * Sentinel support * Update changeset
- Loading branch information
Showing
10 changed files
with
224 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'@graphql-mesh/cache-redis': patch | ||
--- | ||
|
||
Support REDIS_FAMILY to set family of the IP address (IPv4 or IPv6). | ||
|
||
This enhancement allows you to explicitly specify the IP address family when connecting to Redis instances: | ||
- 4: Force IPv4 | ||
- 6: Force IPv6 | ||
- 0: Automatic (default) | ||
|
||
This is particularly useful in network environments where specific IP protocols are required or when troubleshooting connection issues. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@graphql-mesh/types': patch | ||
'@graphql-mesh/cache-redis': patch | ||
--- | ||
|
||
Support Redis Sentinels - [See more](https://github.com/redis/ioredis?tab=readme-ov-file#sentinel) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
website/src/generated-markdown/RedisConfigSentinel.generated.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
* `name` (type: `String`, required) - identifies a group of Redis instances composed of a master and one or more slaves | ||
* `sentinelPassword` (type: `String`) - (optional) password for Sentinel instances. | ||
* `sentinels` (type: `Array of Object`, required) - A list of sentinels to connect to. The list does not need to enumerate all your sentinel instances, but a few so that if one is down the client will try the next one.: | ||
* `host` (type: `String`) | ||
* `port` (type: `String`) | ||
* `family` (type: `String`) | ||
* `role` (type: `String (master | slave)`) - (optional) with a value of slave will return a random slave from the Sentinel group. | ||
* `enableTLSForSentinelMode` (type: `Boolean`) - (optional) set to true if connecting to sentinel instances that are encrypted | ||
* `lazyConnect` (type: `Boolean`) - Flag to indicate lazyConnect value for Redis client. | ||
|
||
@default: true |
11 changes: 11 additions & 0 deletions
11
website/src/generated-markdown/RedisConfigSingle.generated.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
* `host` (type: `String`) | ||
* `port` (type: `String`) | ||
* `username` (type: `String`) | ||
* `password` (type: `String`) | ||
* `db` (type: `Int`) | ||
* `url` (type: `String`) | ||
* `family` (type: `String`) | ||
* `lazyConnect` (type: `Boolean`) - Flag to indicate lazyConnect value for Redis client. | ||
|
||
@default: true |
4 changes: 4 additions & 0 deletions
4
website/src/generated-markdown/RedisSentinelConfig.generated.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
* `host` (type: `String`) | ||
* `port` (type: `String`) | ||
* `family` (type: `String`) |