Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-16687

[RESP] Sorted Set commands including WITHSCORES options should return list of lists

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • RESP
    • None

      Commands returning elements of sorted sets with WITHSCORES option should return them as list of lists:

      Infinispan:

      127.0.0.1:11222> zadd zset 1 a 2 b 3 c
      (integer) 3
      127.0.0.1:11222> zrange zset 0 -1 WITHSCORES
      1) "a"
      2) "1.0"
      3) "b"
      4) "2.0"
      5) "c"
      6) "3.0"
      

      Redis RESP2:

      127.0.0.1:6379> zrange zset 0 -1 WITHSCORES
      1) "a"
      2) "1"
      3) "b"
      4) "2"
      5) "c"
      6) "3"
      

      Redis RESP3:

      127.0.0.1:6379> zrange zset 0 -1 WITHSCORES
      1) 1) "a"
         2) (double) 1
      2) 1) "b"
         2) (double) 2
      3) 1) "c"
         2) (double) 3
      

            karestig@redhat.com Katia Aresti
            karestig@redhat.com Katia Aresti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: