coolexp / redis

Automatically exported from code.google.com/p/redis
0 stars 0 forks source link

SADD should return 1 when the string is actually added to the set #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
... and of course 0 in all other cases.

Original issue reported on code.google.com by dialt...@gmail.com on 27 Feb 2009 at 5:17

GoogleCodeExporter commented 8 years ago
Sounds like a good idea... and -1 when you try to SADD against a non-set value 
in
order to be coherent with the other commands where the reply is an integer.

Original comment by anti...@gmail.com on 27 Feb 2009 at 5:25

GoogleCodeExporter commented 8 years ago
ah, and probably srem should do the same. 1 if the element was actually 
removed, 0 if
there was no such an element, -1 on srem against non-set value.

Original comment by anti...@gmail.com on 27 Feb 2009 at 5:26

GoogleCodeExporter commented 8 years ago
yes, sounds reasonable and useful.

Original comment by dialt...@gmail.com on 27 Feb 2009 at 5:56

GoogleCodeExporter commented 8 years ago
Would it be possible to use a public repo, so that we can keep track of changes 
and
maybe play with them before they are released?

Original comment by ludovico...@siassb.eu on 27 Feb 2009 at 6:54

GoogleCodeExporter commented 8 years ago

Original comment by anti...@gmail.com on 3 Mar 2009 at 10:39