-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(redis): add options to set username and password separately (#4453)
Example of configuration: ```yaml title="router.yaml" supergraph: query_planning: experimental_cache: redis: #highlight-line urls: ["redis://..."] #highlight-line username: admin/123 # Optional, can be part of the urls directly, mainly useful if you have special character like '/' in your password that doesn't work in url password: admin # Optional, can be part of the urls directly, mainly useful if you have special character like '/' in your password that doesn't work in url timeout: 5ms # Optional, by default: 2ms ttl: 24h # Optional, by default no expiration ``` Fixes #4346 --------- Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
62 additions
and
0 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,17 @@ | ||
### Add options to set username and password separately for Redis ([Issue #4346](https://github.com/apollographql/router/issues/4346)) | ||
|
||
Example of configuration: | ||
|
||
```yaml title="router.yaml" | ||
supergraph: | ||
query_planning: | ||
experimental_cache: | ||
redis: #highlight-line | ||
urls: ["redis://..."] #highlight-line | ||
username: admin/123 # Optional, can be part of the urls directly, mainly useful if you have special character like '/' in your password that doesn't work in url. This field takes precedence over the username in the URL | ||
password: admin # Optional, can be part of the urls directly, mainly useful if you have special character like '/' in your password that doesn't work in url. This field takes precedence over the password in the URL | ||
timeout: 5ms # Optional, by default: 2ms | ||
ttl: 24h # Optional, by default no expiration | ||
``` | ||
By [@bnjjj](https://github.com/bnjjj) in https://github.com/apollographql/router/pull/4453 |
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