Created
February 1, 2011 15:49
-
-
Save rjp/806042 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
del folder:mince | |
del folder:opensource | |
del user:rjp:read | |
zadd folder:mince 12345 23 | |
zadd folder:mince 12346 24 | |
zadd folder:opensource 12345 25 | |
zadd folder:mince 12349 26 | |
zadd user:rjp:read 12345 23 | |
zadd user:rjp:read 12345 25 | |
echo "should be 2" | |
zdiffstore unread:rjp:mince 2 folder:mince user:rjp:read | |
echo "should be 0" | |
zdiffstore unread:rjp:opensource 2 folder:opensource user:rjp:read | |
zadd folder:mince 12350 23 | |
echo "should be 3" | |
zdiffstore unread:rjp:mince 2 folder:mince user:rjp:read withscores | |
echo "should be 0" | |
zdiffstore unread:rjp:opensource 2 folder:opensource user:rjp:read withscores | |
zadd folder:opensource 12351 25 | |
echo "should be 3" | |
zdiffstore unread:rjp:mince 2 folder:mince user:rjp:read withscores | |
echo "should be 1" | |
zdiffstore unread:rjp:opensource 2 folder:opensource user:rjp:read withscores |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment