B
B
badcluster2016-05-19 14:09:48
Ruby on Rails
badcluster, 2016-05-19 14:09:48

What is the correct way to pass the XX option to the ZADD command in Redis Rails?

I set the value in 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

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
ArturNak, 2015-07-31
@warriorkg

there are many specialties that intersect with programming: applied mathematics, applied computer science, automated information processing tools, etc. If you want to get a tower in this area, then choose one of these specialties.

V
Vladimir Martyanov, 2015-07-29
@vilgeforce

Without self-education, something wrong will still come out, so start now.

D
Denis Karakchiev, 2015-07-29
@Satori_Kanzo

Is Innopolis still not accepting full-time bachelor's degrees?

P
Pavel Vasterov, 2015-07-29
@zxc80

The question is not correct, think about what kind of work you are ready to spend your life on?

O
one pavel, 2015-07-29
@onepavel

A red diploma is not a sign of intelligence.
I know a girl who has a red diploma, she stupidly memorized everything.
Apply to FAVT or FKTI or FITiP

I
Igor Ivanov, 2019-03-05
@Feedlike

Of course here https://otus.ru/categories/programming/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question