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

Add support for JSON.MSET #2605

Merged
merged 4 commits into from Sep 18, 2023
Merged

Add support for JSON.MSET #2605

merged 4 commits into from Sep 18, 2023

Conversation

rowantrollope
Copy link
Contributor

MSET command added. Requires all keys to have the same JSON Path, which might fit most use cases, but is a limitation. Optionally we could make the path an array as well to support all use cases.

Description

Adding support for JSON.MSET - this implementation uses a single path, which may be limiting. If desired we could make this an array as well.


Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

rowantrollope and others added 3 commits August 29, 2023 10:31
MSET command added. Requires all keys to have the same JSON Path, which might fit most use cases, but is a limitation.  Optionally we could make the path an array as well to support all use cases.
@codecov-commenter
Copy link

codecov-commenter commented Aug 29, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01% ⚠️

Comparison is base (294cbf8) 95.66% compared to head (4e47456) 95.65%.

❗ Current head 4e47456 differs from pull request most recent head 0093eb0. Consider uploading reports for the commit 0093eb0 to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2605      +/-   ##
==========================================
- Coverage   95.66%   95.65%   -0.01%     
==========================================
  Files         456      455       -1     
  Lines        4563     4555       -8     
  Branches      526      525       -1     
==========================================
- Hits         4365     4357       -8     
  Misses        127      127              
  Partials       71       71              

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor Author

@rowantrollope rowantrollope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome thank you

Copy link
Contributor Author

@rowantrollope rowantrollope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Removed unused RedisCommandArguments
@chayim chayim added the feature label Sep 3, 2023
@leibale leibale changed the title Added MSET command Add support for JSON.MSET Sep 18, 2023
@leibale leibale merged commit 5a10826 into redis:master Sep 18, 2023
18 checks passed
@leibale leibale mentioned this pull request Sep 18, 2023
3 tasks
@leibale
Copy link
Collaborator

leibale commented Sep 19, 2023

@rowantrollope redis@4.6.9/@redis/json@1.0.5 is on npm 🎉

@rowantrollope
Copy link
Contributor Author

rowantrollope commented Sep 20, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants