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

crate feature json does not support NX and XX args #1183

Open
DimiDumo opened this issue May 9, 2024 · 1 comment
Open

crate feature json does not support NX and XX args #1183

DimiDumo opened this issue May 9, 2024 · 1 comment

Comments

@DimiDumo
Copy link

DimiDumo commented May 9, 2024

When using the json module for redis and the crate feature json, I cannot use the NX and XX args when setting a JSON.

I would like to do the equivalent of this using .json_set using the json crate feature:

        redis::cmd("JSON.SET")
            .arg(&key)
            .arg(".")
            .arg(json_data)
            .arg("NX")
            .query_async(&mut conn).await?;
@nihohit
Copy link
Contributor

nihohit commented May 9, 2024 via email

barshaul pushed a commit to barshaul/redis-rs that referenced this issue Jul 11, 2024
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

No branches or pull requests

2 participants