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

Issue with a simple GET command #1227

Closed
PaulDotSH opened this issue Jun 18, 2024 · 3 comments
Closed

Issue with a simple GET command #1227

PaulDotSH opened this issue Jun 18, 2024 · 3 comments

Comments

@PaulDotSH
Copy link

Hi, the following coding snippet

  if let Ok(encoded) = redis::cmd("GET")
        .arg(&encoded_filter)
        .query_async::<_, Vec<u8>>(&mut conn)
        .await {}

ALWAYS returns Ok, even when the key is NOT present in redis, it just choses to return an empty vec. Why does this happen? How can I fix it?

@nihohit
Copy link
Contributor

nihohit commented Jun 19, 2024 via email

@nihohit
Copy link
Contributor

nihohit commented Jun 27, 2024

@PaulDotSH is the issue solved?

@PaulDotSH
Copy link
Author

Fixed by the comment from @nihohit

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