How to pass option XX to the command ZADD Redis in Rails?

Set the value in the sorted set
$redis.zadd('rating', 0.43, 31)


I want to change:
$redis.zadd('rating', 0.44, 31, {:xx => true})


Answer:
Redis::CommandError: ERR syntax error
July 9th 19 at 13:02

Find more questions by tags RedisRuby on Rails