I have a sorted set in Redis. I am trying to update the counter value of a specific element by using zincrby in Python code like:
conn.zincrby("usersSet", float(1), "user1")
But it is showing an error as : 'Error: value is not a valid float'
I tried the same command on cli : zincrby usersSet 1 users1 And it is working correctly. Is there any other method in Python code to increase the counter value of the specific key in the sorted set.