Skip to content
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

chore: convert cache client constructor to accept args #209

Merged
merged 5 commits into from
Mar 1, 2023

Conversation

pgautier404
Copy link
Contributor

This commit changes the NewCacheClient constructor method so it accepts arguments for configuration, credential provider, and default TTL as discrete values instead of bundling them in a struct. This prevents users from passing in an empty struct with golang default values that guarantee the user a broken client. It also normalizes TTL -> Ttl in camel cased identifiers.

@pgautier404 pgautier404 force-pushed the cache-client-constructor-args branch from 4f4eea9 to 7603164 Compare March 1, 2023 00:26
@pgautier404 pgautier404 force-pushed the cache-client-constructor-args branch 2 times, most recently from 1f7d4a2 to badd12d Compare March 1, 2023 00:54
@pgautier404 pgautier404 force-pushed the cache-client-constructor-args branch from badd12d to 648b9f6 Compare March 1, 2023 00:58
eaddingtonwhite
eaddingtonwhite previously approved these changes Mar 1, 2023
schwern
schwern previously approved these changes Mar 1, 2023
@pgautier404 pgautier404 changed the title chore: convert cache client constructor to accept args props struct chore: convert cache client constructor to accept args Mar 1, 2023
@pgautier404 pgautier404 dismissed stale reviews from schwern and eaddingtonwhite via b512984 March 1, 2023 17:12
@pgautier404 pgautier404 merged commit 9ca4fc5 into main Mar 1, 2023
@pgautier404 pgautier404 deleted the cache-client-constructor-args branch March 1, 2023 17:57
cprice404 pushed a commit that referenced this pull request Mar 14, 2023
* chore: convert cache client constructor to accept args vs. a props struct

* change constructor argument name for consistency with other SDKs

* more TTL -> Ttl renames

* revert incorrect param name change

* temporarily skip some sorted set tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants