-
Notifications
You must be signed in to change notification settings - Fork 11
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
Added keyv 5 support for KeyvAdapter #461
Added keyv 5 support for KeyvAdapter #461
Conversation
@sroebert: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
🦋 Changeset detectedLatest commit: 025b439 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
8b8f7b4
to
817f195
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
817f195
to
70f3c73
Compare
99280b5
to
7f71260
Compare
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.
LGTM!
We'd also appreciate this to go through, whenever there's time! :) |
Here is also a team that is eagerly waiting this to go through! |
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.
This looks good to me. Thanks for the contribution!
Added note about which version of Keyv is supported
The `@apollo/utils.keyvadapter` package was updated in apollographql/apollo-utils#461 to be compatible with Keyv v5. The primary change is that the `Keyv` constructor takes a store instead of a string. The constructor can be invoked in two ways: ``` // passed as first argument new Keyv(new KeyvRedis("redis://...")) // passed as store new Keyv({ store: new KeyvRedis("redis://...") }) ``` This updates the Redis examples in the documentation to match the new API. For simplicity, I've stuck to the first format.
This implements support for keyv version 5, which fixes #457 and #459.