Cannot use map for more than one item with HSET operation on Redis 8 #3103
              
                Unanswered
              
          
                  
                    
                      albertosml
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
According to the documentation for version 8.11.5, the one that I'm currently using, I could perform a HSET using a map, as shown on this example.
However, I have performed the next code using a map with more than one field, like in the previous example:
and I get the
ERR wrong number of arguments for 'hset' command.Note that the operation is working as expected when my map only contains one field:
After digging into the issue, I have found this discussion, where a similar issue than mine is reported and has been documented.
Finally, my solution has been to use the HMSET operation, even it's marked as deprecated from Redis 4.
Do you suggest me continuing using the deprecated operation, or this case should be covered on the documentation as well?
Beta Was this translation helpful? Give feedback.
All reactions