Skip to content

Instantly share code, notes, and snippets.

@hooptie45
Created August 19, 2011 08:18
Show Gist options
  • Save hooptie45/1156321 to your computer and use it in GitHub Desktop.
Save hooptie45/1156321 to your computer and use it in GitHub Desktop.
Friend Buy Redis
> SET server:name "bidja"
"OK"
> SADD item:item1:bidders 123456
true
> SADD item:item1:bidders 333333
true
> SADD item:item1:bidders 555555
true
> SADD item:item1:bidders 123456
true
> SADD item:item1:bidders 333333
true
> SADD item:item1:bidders 555555
true
> SADD user:111111:friends 333333
true
> SADD user:111111:friends 123456
true
> SADD item:item1:bidders 123456
true
> SADD item:item1:bidders 333333
true
> SADD item:item1:bidders 454545
true
> SADD item:item1:bidders 121212
true
> SADD item:item1:bidders 252525
true
SINTER bids item:item1:bidders user:111111:friends
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment