djveremix / redis

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

SCARD & SISMEMBER #265

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.SCARD shows 0 but SISMEMBER SOME_ID returns 1
2.
3.

What is the expected output? What do you see instead?
I would expect 0 instead of 1(integer)

What version of the product are you using? On what operating system?
ubuntu server 

Please provide any additional information below.
Every 2.0s: redis-cli -h 192.168.1.121 -p 6379 SISMEMBER 26946951 
changed_auctions                                                                
                                Tue Jun 22 01:05:10 2010

(integer) 1

----------------------

Every 2.0s: redis-cli -h 192.168.1.121 -p 6379 SCARD changed_auctions           

                  Tue Jun 22 01:05:21 2010

(integer) 0

Original issue reported on code.google.com by berqui on 21 Jun 2010 at 10:07

GoogleCodeExporter commented 8 years ago
Which version of Redis do you use?

Original comment by pcnoordh...@gmail.com on 26 Jun 2010 at 9:33

GoogleCodeExporter commented 8 years ago
version 1.2.2...
any progress ?

Original comment by berqui on 29 Jun 2010 at 3:58

GoogleCodeExporter commented 8 years ago
Not sure why I didn't catch this before, but your call to SISMEMBER has the 
parameters in the wrong order. The prototype is SISMEMBER <key> <member>, so 
you're testing the set "26946951" for a member "changed_auctions" here. So, 
when the "changed_auctions" set is in fact empty, this behavior is correct.

Original comment by pcnoordh...@gmail.com on 24 Aug 2010 at 2:34