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

HSET error when value to store is empty #1290

Open
jppsantana opened this issue Sep 4, 2024 · 1 comment
Open

HSET error when value to store is empty #1290

jppsantana opened this issue Sep 4, 2024 · 1 comment

Comments

@jppsantana
Copy link

Currently calling the hset method with an empty like value results in the following error:

Redis::CommandError: ERR wrong number of arguments for 'hset' command

Examples:

empty_redis_1

empty_redis_2

Is there any chance this can crash gracefully? Or any thoughts about the best way to handle this without being explicit checking empty values before calling hset? Thanks!

@jppsantana jppsantana changed the title HSET error when value to store is an empty HSET error when value to store is empty Sep 4, 2024
@byroot
Copy link
Collaborator

byroot commented Sep 5, 2024

It would be easy to do nothing if the argument is empty yes.

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