-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(plugins): fix competing redis configs #12343
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ local function redis_config_adapter(conf) | |
host = conf.host, | ||
port = conf.port, | ||
database = conf.database, | ||
auth = conf.password or conf.auth, -- allow conf.auth until 4.0 version | ||
auth = conf.password, | ||
ssl = conf.ssl, | ||
ssl_verify = conf.ssl_verify, | ||
ssl_server_name = conf.server_name or conf.ssl_server_name, -- allow conf.ssl_server_name until 4.0 version | ||
ssl_server_name = conf.server_name, | ||
|
||
namespace = conf.extra_options.namespace or conf.namespace, -- allow conf.namespace until 4.0 version | ||
scan_count = conf.extra_options.scan_count or conf.scan_count, -- allow conf.scan_count until 4.0 version | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately this approach did not work because |
||
namespace = conf.extra_options.namespace, | ||
scan_count = conf.extra_options.scan_count, | ||
Comment on lines
+9
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree on the path towards unification of config fields, but I'm wondering whether the new names read better than the old ones. For example, changing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the other side, (I just caught up the design doc), as we are planning to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The transitional step is being done to simplify the move from a plugin-individual redis configuration to a unified-global redis configuration. In this step, we're moving from the Regarding the |
||
} | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous approach of just overwriting data with new value would not work if I wanted to nest data from shorthand in a table. Therefore if the new value is a table I need to merge it with current data.