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.GET.WATCH #1168

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arbha1erao
Copy link
Contributor

@arbha1erao arbha1erao commented Oct 20, 2024

Fixes: #1131

@@ -1211,7 +1211,7 @@ func evalJSONSET(args []string, store *dstore.Store) []byte {

// Create a new object with the updated JSON data
newObj := store.NewObj(rootData, -1, object.ObjTypeJSON, object.ObjEncodingJSON)
store.Put(key, newObj)
store.Put(key, newObj, dstore.WithPutCmd(dstore.JSONSet))
Copy link
Collaborator

Choose a reason for hiding this comment

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

You would likely want to make similar changes to the JSON.DEL implementation as well.

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.

Add support for JSON.GET.WATCH command
2 participants