Skip to content

Instantly share code, notes, and snippets.

@barnabyc
Last active October 15, 2015 01:39

Revisions

  1. barnabyc revised this gist Oct 15, 2015. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions redis-cli.output
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    127.0.0.1:6379> zadd myindex 0 "banana:123" 0 "banahhh:1" 0 "banned user:49" 0 "banning:89"
    (integer) 4
    127.0.0.1:6379> ZRANGEBYLEX myindex "[banana:" + LIMIT 1 10
    1) "banned user:49"
    2) "banning:89"
    127.0.0.1:6379> ZRANGEBYLEX myindex "[banana:" + LIMIT 0 10
    1) "banana:123"
    2) "banned user:49"
    3) "banning:89"
    127.0.0.1:6379>
  2. barnabyc revised this gist Oct 15, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions redis-cli.output
    Original file line number Diff line number Diff line change
    @@ -3,3 +3,4 @@
    127.0.0.1:6379> ZRANGEBYLEX myindex "[banana:" + LIMIT 1 10
    1) "banned user:49"
    2) "banning:89"
    127.0.0.1:6379>
  3. barnabyc revised this gist Oct 15, 2015. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions redis-cli.output
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,3 @@
    127.0.0.1:6379> ZRANGEBYLEX myindex "[banana:" + LIMIT 1 10
    1) "banned user:49"
    2) "banning:89"
    127.0.0.1:6379> ZRANGEBYLEX myindex "[banana:" + LIMIT 1 1
    1) "banned user:49"
    127.0.0.1:6379>
  4. barnabyc revised this gist Oct 15, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions redis-cli.output
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,6 @@
    127.0.0.1:6379> ZRANGEBYLEX myindex "[banana:" + LIMIT 1 10
    1) "banned user:49"
    2) "banning:89"
    127.0.0.1:6379> ZRANGEBYLEX myindex "[banana:" + LIMIT 1 1
    1) "banned user:49"
    127.0.0.1:6379>
  5. barnabyc created this gist Oct 15, 2015.
    6 changes: 6 additions & 0 deletions redis-cli.output
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    127.0.0.1:6379> zadd myindex 0 "banana:123" 0 "banahhh:1" 0 "banned user:49" 0 "banning:89"
    (integer) 4
    127.0.0.1:6379> ZRANGEBYLEX myindex "[banana:" + LIMIT 1 10
    1) "banned user:49"
    2) "banning:89"
    127.0.0.1:6379>